  :root {
    --acorn: #C4622D;
    --bark: #3D2B1F;
    --moss: #5C7A4E;
    --sky: #D4E8C2;
    --cream: #F7F0E6;
    --gold: #E8A020;
    --soft: #EDE3D5;
    --text: #2A1F14;
    --muted: #8B7355;
  }

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

  html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: var(--cream);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
  }

  /* Evitar que texto y contenido se salga de los bordes en móvil */
  body, .landing-section, .app-container, .card, .benefits-wrap, .how-section,
  .testimonials-wrap, .cta-section, .faq-section, .blog-section, .pricing-wrap,
  .site-footer, .section-inner, .dash-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }
  p, h1, h2, h3, h4, li, span, label, .card-title, .card-subtitle,
  .section-title, .section-sub, .benefit-title, .testimonial-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Texture overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }

  /* ===== HEADER ===== */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 3rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    border-bottom: 1px solid rgba(196,98,45,0.12);
    background: rgba(247,240,230,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  /* ── Mobile nav (hamburger con todo el menú) ── */
  .mobile-nav-wrap {
    display: flex;
    align-items: center;
    position: relative;
  }
  .mobile-nav-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1.5px solid rgba(61,43,31,0.2);
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(196,98,45,0.15);
    touch-action: manipulation;
  }
  .mobile-nav-trigger:hover { background: var(--soft); }
  .mobile-nav-trigger .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
    padding: 0;
  }
  .mobile-nav-trigger .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .mobile-nav-trigger.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-nav-trigger.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-nav-trigger.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(61,43,31,0.2), 0 0 0 1px rgba(196,98,45,0.1);
    padding: 1rem;
    z-index: 9999;
    animation: dropdownIn 0.2s ease both;
  }
  .mobile-nav-panel.open { display: block; }
  @media (max-width: 768px) {
    .mobile-nav-panel {
      min-width: 260px;
      right: -0.5rem;
      padding: 1.25rem;
    }
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft);
    margin-bottom: 1rem;
  }
  .mobile-nav-links a {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: var(--bark);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
  }
  .mobile-nav-links a:hover { background: var(--soft); }
  .mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Legacy hamburger (cuando se usa standalone) */
  .mobile-auth-wrap .hamburger {
    display: none;
  }
  .hamburger {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .hamburger:hover { background: var(--soft); }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Auth buttons ── */
  .btn-login {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bark);
    background: none;
    border: 1.5px solid rgba(61,43,31,0.2);
    border-radius: 100px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
  }
  .btn-login:hover { border-color: var(--bark); background: var(--soft); }

  .btn-register {
    font-size: 0.82rem;
    font-weight: 600;
    color: white;
    background: var(--acorn);
    border: none;
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(196,98,45,0.25);
  }
  .btn-register:hover { background: var(--bark); box-shadow: 0 6px 18px rgba(61,43,31,0.2); }

  /* ── Mobile: dropdown Login/Registro (solo auth, sin nav) ── */
  .mobile-auth-wrap {
    display: none;
    position: relative;
  }

  .mobile-auth-dropdown { display: none; }

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

  .mobile-nav-auth .mobile-auth-btn,
  .mobile-auth-dropdown .mobile-auth-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    cursor: pointer;
    text-align: left;
    background: none;
    color: var(--bark);
    transition: background 0.15s;
  }
  .mobile-nav-auth .mobile-auth-btn:hover,
  .mobile-auth-dropdown .mobile-auth-btn:hover { background: var(--soft); }
  .mobile-nav-auth .mobile-auth-btn.register,
  .mobile-auth-dropdown .mobile-auth-btn.register {
    background: var(--acorn);
    color: white;
    font-weight: 600;
    text-align: center;
  }
  .mobile-nav-auth .mobile-auth-btn.register:hover,
  .mobile-auth-dropdown .mobile-auth-btn.register:hover { background: var(--bark); }

  .mobile-dropdown-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: transparent;
  }
  .mobile-dropdown-backdrop.open { display: block; }

  /* Desktop: hide mobile nav, show normal nav */
  @media (min-width: 769px) {
    .mobile-nav-wrap { display: none !important; }
    .header-nav { display: flex !important; }
    .header-right { display: flex !important; }
  }

  /* Mobile/tablet: hamburguesa visible, nav normal oculto */
  @media (max-width: 768px) {
    .mobile-nav-wrap {
      display: flex !important;
      align-items: center;
      justify-content: center;
      position: relative;
      visibility: visible !important;
      opacity: 1 !important;
      flex-shrink: 0;
    }
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .logo-icon {
    width: 42px;
    height: 42px;
    animation: squirrelBob 3s ease-in-out infinite;
  }

  @keyframes squirrelBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
  }

  .logo-text {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--bark);
    letter-spacing: -0.02em;
  }

  .logo-text span {
    color: var(--acorn);
  }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 2rem 2rem;
    overflow: hidden;
  }

  .hero-badge {
    display: inline-block;
    background: var(--moss);
    color: var(--sky);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
  }

  .hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--bark);
    letter-spacing: -0.03em;
    max-width: 700px;
    margin: 0 auto 1rem;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--acorn);
    font-weight: 300;
  }

  .hero p {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== MAIN APP ===== */
  .app-container {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
  }

  /* Steps */
  .steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
  }

  .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: var(--soft);
    border: 2px solid var(--soft);
    transition: all 0.3s;
    cursor: pointer;
  }

  .step-dot.active {
    background: var(--acorn);
    border-color: var(--acorn);
    width: 24px;
  }

  .step-dot.done {
    background: var(--moss);
    border-color: var(--moss);
  }

  /* Cards */
  .card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 2px 40px rgba(61,43,31,0.08), 0 0 0 1px rgba(196,98,45,0.08);
    border-top: 3px solid #C4622D;
    border-bottom: 3px solid #C4622D;
    animation: fadeUp 0.5s ease both;
  }

  .card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    background: var(--soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .card-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.25rem;
  }

  /* Form elements */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .form-grid.single { grid-template-columns: 1fr; }

  .field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .field-wrap {
    position: relative;
  }
  .field-wrap input {
    position: relative;
    z-index: 1;
  }

  .field label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .field-wrap {
    position: relative;
  }

  .field-wrap span {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
  }

  input[type="number"], input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    background: var(--cream);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--bark);
    transition: all 0.2s;
    outline: none;
    -moz-appearance: textfield;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196,98,45,0.1);
  }

  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

  input:focus, select:focus {
    border-color: var(--acorn);
    background: white;
    box-shadow: 0 0 0 4px rgba(196,98,45,0.08);
  }

  /* Debt list */
  .debt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .debt-item {
    display: grid;
    grid-template-columns: 1fr 110px 80px 100px 36px;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border-radius: 14px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
    animation: fadeUp 0.3s ease both;
  }

  .debt-item:hover { border-color: rgba(196,98,45,0.2); }

  .debt-item input {
    background: white;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
  @media (max-width: 768px) {
    .debt-item input,
    .ob-input, .ob-debt-input, .ob-debt-field input,
    .auth-field input,
    input[type="number"], input[type="text"], input[type="email"], input[type="password"] {
      font-size: 16px !important;
    }
    .hero, .app-container, .card {
      position: relative;
      z-index: 20;
    }
    .btn-hero-cta, .btn-primary, .field-wrap input, .field label {
      position: relative;
      z-index: 1;
      pointer-events: auto;
    }
    .form-grid, .debt-list, .debt-item {
      min-width: 0;
    }
    .field-wrap, .field {
      min-width: 0;
    }
  }

  .debt-item input:first-child { padding-left: 0.75rem; }

  .debt-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(196,98,45,0.1);
    color: var(--acorn);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .remove-btn:hover { background: var(--acorn); color: white; }

  .add-debt-btn {
    width: 100%;
    padding: 0.85rem;
    border: 1.5px dashed rgba(196,98,45,0.3);
    background: transparent;
    border-radius: 14px;
    color: var(--acorn);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .add-debt-btn:hover { background: rgba(196,98,45,0.06); border-color: var(--acorn); }

  /* Method selector */
  .method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .method-option {
    padding: 1.25rem;
    border: 2px solid var(--soft);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }

  .method-option:hover { border-color: rgba(196,98,45,0.3); }
  .method-option.selected { border-color: var(--acorn); background: rgba(196,98,45,0.04); }

  .method-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bark);
    margin-bottom: 0.35rem;
  }

  .method-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
  }

  .method-emoji { font-size: 1.6rem; margin-bottom: 0.5rem; }

  /* Buttons */
  .btn-primary {
    background: var(--bark);
    color: var(--cream);
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-primary:hover { background: var(--acorn); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,98,45,0.3); }

  .btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--soft);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-secondary:hover { border-color: var(--muted); color: var(--bark); }

  .btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
  }

  /* ===== RESULTS ===== */
  .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(61,43,31,0.06);
    text-align: center;
    animation: fadeUp 0.4s ease both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(61,43,31,0.1);
  }

  .results-grid.premium .stat-card {
    border: 1px solid rgba(196,98,45,0.06);
    box-shadow: 0 4px 24px rgba(61,43,31,0.06);
  }

  .results-grid.premium .stat-card:hover {
    box-shadow: 0 12px 40px rgba(61,43,31,0.1);
  }

  .stat-card:nth-child(2) { animation-delay: 0.1s; }
  .stat-card:nth-child(3) { animation-delay: 0.2s; }

  .stat-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }

  .stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .stat-value.green { color: var(--moss); }
  .stat-value.orange { color: var(--acorn); }

  .stat-sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.3rem;
  }

  /* Freedom chart */
  .chart-card {
    background: white;
    border-radius: 24px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 40px rgba(61,43,31,0.08);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.5s 0.3s ease both;
    border: 1px solid rgba(196,98,45,0.04);
    transition: box-shadow 0.25s ease;
  }

  .chart-card:hover {
    box-shadow: 0 8px 48px rgba(61,43,31,0.1);
  }

  .chart-title {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 0.25rem;
  }

  .chart-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
  }

  .chart-wrap {
    position: relative;
    height: 240px;
  }

  .charts-duo {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .charts-duo .chart-card {
    margin-bottom: 0;
  }

  .chart-wrap-doughnut {
    height: 260px;
    max-width: 280px;
    margin: 0 auto;
  }

  @media (max-width: 900px) {
    .charts-duo { grid-template-columns: 1fr; }
    .charts-duo .chart-card { margin-bottom: 1.5rem; }
    .charts-duo .chart-card:last-child { margin-bottom: 0; }
    .chart-wrap-doughnut { max-width: none; }
  }

  canvas { width: 100% !important; }

  /* Squirrel progress */
  .squirrel-track {
    position: relative;
    height: 80px;
    background: var(--soft);
    border-radius: 100px;
    margin: 1.5rem 0;
    overflow: hidden;
  }

  .squirrel-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--moss), var(--gold));
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 2px 12px rgba(92,122,78,0.3);
  }

  .squirrel-runner {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: runSquirrel 0.6s ease-in-out infinite alternate;
  }

  @keyframes runSquirrel {
    from { transform: translateY(-50%) rotate(-5deg) scaleX(1); }
    to { transform: translateY(-55%) rotate(5deg) scaleX(1); }
  }

  .track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
    padding: 0 0.5rem;
  }

  /* Monthly plan */
  .plan-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 2px 40px rgba(61,43,31,0.08);
    animation: fadeUp 0.5s 0.4s ease both;
    border: 1px solid rgba(196,98,45,0.04);
    transition: box-shadow 0.25s ease;
  }

  .plan-card:hover {
    box-shadow: 0 8px 48px rgba(61,43,31,0.1);
  }

  .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .month-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    transition: background 0.2s;
    font-size: 0.88rem;
  }

  .month-row:hover {
    background: rgba(196,98,45,0.03);
  }

  .month-row.header {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--soft);
    margin-bottom: 0.5rem;
  }

  .month-row.highlight {
    background: rgba(232,160,32,0.08);
    border: 1px solid rgba(232,160,32,0.2);
  }

  .progress-mini {
    height: 6px;
    background: var(--soft);
    border-radius: 100px;
    overflow: hidden;
  }

  .progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--moss), var(--gold));
    border-radius: 100px;
    transition: width 0.5s ease;
  }

  .tag-free {
    background: var(--moss);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 500;
  }

  .acorn-emoji { font-size: 0.85rem; }

  /* Empathy message */
  .empathy-box {
    background: linear-gradient(135deg, var(--soft) 0%, rgba(92,122,78,0.08) 100%);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border: 1px solid rgba(92,122,78,0.12);
    animation: fadeUp 0.5s 0.2s ease both;
    box-shadow: 0 2px 16px rgba(61,43,31,0.03);
  }

  .empathy-squirrel {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(61,43,31,0.08));
  }

  .empathy-text {
    font-size: 0.9rem;
    color: var(--bark);
    line-height: 1.7;
    font-weight: 300;
    transition: opacity 0.45s ease, transform 0.4s ease;
  }
  .empathy-text.fading {
    opacity: 0;
    transform: translateY(-6px);
  }
  .empathy-text strong {
    font-weight: 500;
    color: var(--moss);
  }
  .empathy-author {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    font-weight: 300;
  }
  .empathy-dots {
    display: flex;
    gap: 5px;
    margin-top: 0.75rem;
    align-items: center;
  }
  .empathy-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(92,122,78,0.25);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }
  .empathy-dot.active {
    background: var(--moss);
    transform: scale(1.35);
  }
  .empathy-progress {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.02em;
  }

  /* Hidden/visible */
  .screen { display: none; }
  .screen.active { display: block; }

  /* Responsive */
  .logo:hover .logo-text { color: var(--acorn); }
  .logo:hover .logo-text span { color: var(--bark); }
  .logo:hover .logo-icon { animation-play-state: running; transform: scale(1.05); }

  /* ===== HOW IT WORKS ===== */
  .how-section {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 1rem;
  }

  .how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
  }

  /* Connector line between steps */
  .how-steps::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(16.66% + 1rem);
    right: calc(16.66% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, var(--acorn), var(--moss));
    opacity: 0.25;
    z-index: 0;
  }

  .how-step {
    background: white;
    border-radius: 22px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(61,43,31,0.07), 0 0 0 1px rgba(196,98,45,0.06);
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .how-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(61,43,31,0.11);
  }

  .how-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--acorn);
    color: var(--cream);
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    box-shadow: 0 4px 14px rgba(196,98,45,0.35);
  }

  .how-step:nth-child(2) .how-step-num { background: var(--moss); box-shadow: 0 4px 14px rgba(92,122,78,0.35); }
  .how-step:nth-child(3) .how-step-num { background: var(--gold); color: var(--bark); box-shadow: 0 4px 14px rgba(232,160,32,0.35); }

  .how-step-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

  .how-step-title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
  }

  .how-step-desc {
    font-size: 0.83rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
  }

  @media (max-width: 768px) {
    .how-steps { grid-template-columns: 1fr; gap: 1rem; }
    .how-steps::before { display: none; }
  }

  /* ===== HERO FALLING LEAVES ===== */
  .hero-leaf {
    position: absolute;
    pointer-events: none;
    animation: leafFall linear infinite;
    z-index: 0;
    user-select: none;
  }

  @keyframes leafFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    6%   { opacity: 1; }
    70%  { opacity: 0; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
  }

  /* ===== HERO CTA BUTTON ===== */
  .btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--acorn);
    color: var(--cream);
    border: none;
    border-radius: 16px;
    padding: 1rem 4rem;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    box-shadow: 0 8px 28px rgba(196,98,45,0.35);
    animation: fadeUp 0.6s 0.3s ease both;
    margin-bottom: 0.5rem;
  }
  .btn-hero-cta:hover {
    background: var(--bark);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(196,98,45,0.3);
  }
  .nuti-svg-icon {
    display: inline-block;
    vertical-align: middle;
  }
  /* ── Página /nuti ── */
  .nuti-page { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
  .nuti-page-hero { text-align: center; padding: 3rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; }
  .nuti-page-title { font-family: 'Fraunces', serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: var(--bark); letter-spacing: -0.03em; margin-bottom: 2rem; }
  .nuti-page-content p { font-size: 1rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.5rem; }
  .btn-nuti-story { display: inline-block; margin-top: 1.5rem; color: var(--acorn); font-weight: 500; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid var(--acorn); padding-bottom: 2px; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
  .btn-nuti-story:hover { opacity: 0.75; }
  .blog-page { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
  .blog-page-hero { text-align: center; padding: 3rem 1.5rem 2.5rem; }
  .blog-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
  .blog-full-card { background: white; border-radius: 20px; padding: 2rem; box-shadow: 0 2px 20px rgba(61,43,31,0.06); cursor: pointer; transition: box-shadow 0.2s; }
  .blog-full-card:hover { box-shadow: 0 4px 30px rgba(61,43,31,0.12); }
  .blog-full-title { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; color: var(--bark); margin: 0.75rem 0 0.5rem; letter-spacing: -0.02em; line-height: 1.3; }
  .blog-full-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
  .blog-full-content { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--soft); }
  .blog-full-content h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; color: var(--bark); margin: 2rem 0 0.75rem; }
  .blog-full-content p { font-size: 0.92rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.25rem; }
  .blog-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
  .blog-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .blog-table th { background: var(--soft); color: var(--bark); padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
  .blog-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--soft); color: var(--muted); }
  .blog-cta-box { background: linear-gradient(135deg, var(--bark), #5C3A24); border-radius: 16px; padding: 2rem; text-align: center; margin-top: 2.5rem; }
  .blog-cta-nuti { font-size: 2.5rem; margin-bottom: 0.75rem; }
  .blog-cta-text { color: rgba(247,240,230,0.9); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }

  .nuti-chapter {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
  }
  .nuti-wave-wrap {
    display: flex;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }
  .nuti-wave-svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 4px 12px rgba(196,98,45,0.3));
    animation: nutiFloat 3s ease-in-out infinite;
  }
  .nuti-arm {
    transform-origin: 22px 38px;
    animation: nutiWave 1.2s ease-in-out infinite;
  }
  @keyframes nutiFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
  }
  @keyframes nutiWave {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(25deg); }
  }
  .btn-hero-wrap {
    display: inline-block;
  }
  .btn-border-svg {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
    overflow: visible;
  }
  .btn-border-rect {
    animation: dashMove 8s linear infinite;
  }
  @keyframes dashMove {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: var(--btn-perimeter, -600); }
  }
  .btn-squirrel {
    display: inline-block;
    animation: squirrelWave 1.5s ease-in-out infinite;
    transform-origin: bottom center;
  }
  @keyframes squirrelWave {
    0%,  100% { transform: rotate(-10deg) translateY(0px); }
    25%        { transform: rotate(15deg)  translateY(-3px); }
    50%        { transform: rotate(-10deg) translateY(0px); }
    75%        { transform: rotate(15deg)  translateY(-3px); }
  }

  /* ===== MOBILE — tablet (max 768px) ===== */
  @media (max-width: 768px) {
    /* Header: logo left, hamburger right — menú desplegable con todo */
    header {
      padding: 0.9rem 1.25rem;
      gap: 0.5rem;
    }
    .header-nav { display: none; }
    .header-right { display: none; }
    .mobile-nav-wrap { display: flex !important; align-items: center; position: relative; }

    /* Hero */
    .hero {
      padding: 2.5rem calc(1.5rem + env(safe-area-inset-right)) 1.5rem calc(1.5rem + env(safe-area-inset-left));
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    /* Hide big decorative acorn on mobile so it doesn't crowd text */
    .hero [aria-hidden="true"]:not(#hero-leaves) { display: none; }

    /* App container */
    .app-container { padding: 0 1rem 3rem; }

    /* Cards */
    .card { padding: 1.5rem 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .method-selector { grid-template-columns: 1fr; }

    /* Month rows */
    .month-row { grid-template-columns: 60px 1fr 90px; font-size: 0.82rem; }
    .month-row > *:last-child:not(.tag-free) { display: none; }

    /* Landing sections */
    .benefits-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
    .benefit-card {
      padding: 1.75rem 1.5rem;
      text-align: left;
    }
    .benefit-icon-wrap {
      margin-bottom: 1rem;
    }
    .counters-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
    .counter-card {
      padding: 1.75rem 1.5rem;
    }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial:nth-child(3) { display: none; }
    .cta-inner { padding: 2.5rem 1.5rem; border-radius: 24px; }
    .cta-checks { gap: 1rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .site-footer {
      padding: 2.5rem 1.5rem 2rem;
      padding-bottom: calc(2rem + env(safe-area-inset-bottom));
      padding-left: calc(1.5rem + env(safe-area-inset-left));
      padding-right: calc(1.5rem + env(safe-area-inset-right));
    }
  }

  /* ===== MOBILE — phone (max 480px) ===== */
  @media (max-width: 480px) {
    header {
      padding: 0.85rem 1rem;
      padding-top: calc(0.85rem + env(safe-area-inset-top));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
    }
    .logo-text { font-size: 1.2rem; }
    .logo-icon { width: 34px; height: 34px; }

    /* Benefit cards: scroll horizontal en teléfono */
    .benefits-wrap { overflow: visible; }
    .benefits-grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 1rem;
      padding-bottom: 1rem;
      margin-left: calc(-1rem - env(safe-area-inset-left));
      margin-right: calc(-1rem - env(safe-area-inset-right));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
    }
    .benefit-card {
      flex: 0 0 85%;
      min-width: 260px;
      scroll-snap-align: start;
    }

    /* Counter cards: scroll horizontal en teléfono */
    .social-proof-section {
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
    }
    .counters-grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 1rem;
      padding-bottom: 1rem;
      margin-left: calc(-1rem - env(safe-area-inset-left));
      margin-right: calc(-1rem - env(safe-area-inset-right));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
    }
    .counter-card {
      flex: 0 0 85%;
      min-width: 260px;
      scroll-snap-align: start;
    }

    /* Botón CTA "Calcular mi fecha de libertad" más pequeño en móvil */
    .cta-section .btn-cta-big {
      font-size: 0.95rem;
      padding: 0.9rem 1.5rem;
    }

    /* Hero */
    .hero {
      padding: 2rem calc(1rem + env(safe-area-inset-right)) 1.25rem calc(1rem + env(safe-area-inset-left));
    }
    .hero h1 { font-size: 1.65rem; }
    .btn-hero-cta { font-size: 1rem; padding: 0.85rem 1.75rem; width: 100%; justify-content: center; }

    /* Debt rows: stack completely on small phones */
    .debt-item {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
    }
    .debt-item input.debt-name { grid-column: 1 / -1; }
    .debt-item input.debt-payment { grid-column: 1 / 2; }
    .debt-item .remove-btn { grid-column: 2 / 3; justify-self: end; }

    /* Cards */
    .card { padding: 1.25rem 1rem; border-radius: 18px; }
    .card-header { gap: 0.75rem; }
    .card-icon { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 11px; }
    .card-title { font-size: 1.15rem; }

    /* Steps */
    .steps { gap: 0.4rem; }

    /* Counters */
    .counters-grid { grid-template-columns: 1fr; }
    .counter-number { font-size: 2.2rem; }

    /* Chat bubble: shift left so it doesn't cover content */
    .chat-bubble { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

    /* Cookie banner */
    .cookie-banner { bottom: calc(1rem + env(safe-area-inset-bottom)); }

    /* Squirrel track */
    .squirrel-track { height: 60px; }
    .squirrel-runner { font-size: 2rem; }
  }

  /* ===== LANDING SECTIONS ===== */
  .landing-section {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  @media (max-width: 768px) {
    .landing-section {
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      max-width: 100%;
    }
    .benefits-wrap, .how-section, .testimonials-wrap, .cta-section, .faq-section, .blog-section, .pricing-wrap {
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
    }
  }

  /* ===== BENEFITS ===== */
  .benefits-wrap {
    padding: 3rem 1.5rem 1rem;
  }

  .section-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 0.6rem;
  }

  .section-title em {
    font-style: italic;
    color: var(--acorn);
    font-weight: 300;
  }

  .section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto 3rem;
    line-height: 1.7;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .benefit-card {
    background: white;
    border-radius: 22px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 24px rgba(61,43,31,0.07), 0 0 0 1px rgba(196,98,45,0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61,43,31,0.12);
  }

  .benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
  }

  .benefit-card:nth-child(1)::before { background: var(--acorn); }
  .benefit-card:nth-child(2)::before { background: var(--moss); }
  .benefit-card:nth-child(3)::before { background: var(--gold); }

  .benefit-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
  }

  .benefit-card:nth-child(1) .benefit-icon-wrap { background: rgba(196,98,45,0.1); }
  .benefit-card:nth-child(2) .benefit-icon-wrap { background: rgba(92,122,78,0.1); }
  .benefit-card:nth-child(3) .benefit-icon-wrap { background: rgba(232,160,32,0.12); }

  .benefit-name {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .benefit-desc {
    font-size: 0.87rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
  }

  .benefit-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
  }

  .benefit-card:nth-child(1) .benefit-tag { background: rgba(196,98,45,0.1); color: var(--acorn); }
  .benefit-card:nth-child(2) .benefit-tag { background: rgba(92,122,78,0.1); color: var(--moss); }
  .benefit-card:nth-child(3) .benefit-tag { background: rgba(232,160,32,0.15); color: #B07A10; }

  /* ===== SOCIAL PROOF ===== */
  .social-proof-section {
    background: var(--bark);
    padding: 3.5rem 1.5rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
  }

  .social-proof-section::before {
    content: '🐿️';
    position: absolute;
    font-size: 12rem;
    opacity: 0.04;
    right: -2rem;
    top: -2rem;
    pointer-events: none;
  }

  .social-proof-inner {
    max-width: 960px;
    margin: 0 auto;
  }

  .social-proof-top {
    text-align: center;
    margin-bottom: 3rem;
  }

  .social-proof-top .section-title {
    color: var(--cream);
  }

  .social-proof-top .section-title em {
    color: var(--gold);
  }

  .social-proof-top .section-sub {
    color: rgba(247,240,230,0.6);
  }

  .counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .counter-card {
    background: rgba(247,240,230,0.07);
    border: 1px solid rgba(247,240,230,0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.3s;
  }

  .counter-card:hover { background: rgba(247,240,230,0.11); }

  .counter-number {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.4rem;
  }

  .counter-label {
    font-size: 0.82rem;
    color: rgba(247,240,230,0.6);
    font-weight: 300;
    line-height: 1.5;
  }

  .counter-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .testimonial {
    background: rgba(247,240,230,0.06);
    border: 1px solid rgba(247,240,230,0.08);
    border-radius: 18px;
    padding: 1.5rem;
    transition: background 0.3s;
  }

  .testimonial:hover { background: rgba(247,240,230,0.1); }

  .testimonial-text {
    font-size: 0.88rem;
    color: rgba(247,240,230,0.82);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .author-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cream);
    line-height: 1.2;
  }

  .author-detail {
    font-size: 0.72rem;
    color: rgba(247,240,230,0.45);
    font-weight: 300;
  }

  .stars {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
  }

  /* ===== FAQ ===== */
  .faq-section {
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 10;
  }

  .faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .faq-item {
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(61,43,31,0.06), 0 0 0 1px rgba(196,98,45,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
  }

  .faq-item:hover { box-shadow: 0 4px 24px rgba(61,43,31,0.1); }

  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.01em;
    transition: color 0.2s;
  }

  .faq-question:hover { color: var(--acorn); }

  .faq-chevron {
    width: 28px;
    height: 28px;
    background: var(--soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--acorn);
  }

  .faq-item.open .faq-chevron {
    background: var(--acorn);
    color: white;
    transform: rotate(180deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.75rem;
  }

  .faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.75rem 1.5rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    border-top: 1px solid var(--soft);
    padding-top: 1.1rem;
  }

  .faq-answer p strong {
    color: var(--bark);
    font-weight: 500;
  }

  /* ===== FINAL CTA ===== */
  .cta-section {
    position: relative;
    z-index: 10;
    padding: 2rem 1.5rem 5rem;
    overflow: hidden;
  }

  .cta-inner {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bark) 0%, #5C3A24 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(61,43,31,0.25);
  }

  .cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(232,160,32,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(92,122,78,0.12) 0%, transparent 50%);
    pointer-events: none;
  }

  .cta-squirrels {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
  }

  .cta-inner .section-title {
    color: var(--cream);
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }

  .cta-inner .section-title em { color: var(--gold); }

  .cta-inner .section-sub {
    color: rgba(247,240,230,0.65);
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
  }

  .cta-checks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
  }

  .cta-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(247,240,230,0.75);
    font-weight: 300;
  }

  .cta-check-dot {
    width: 18px;
    height: 18px;
    background: rgba(92,122,78,0.35);
    border: 1px solid rgba(92,122,78,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--sky);
    flex-shrink: 0;
  }

  .btn-cta-big {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold);
    color: var(--bark);
    border: none;
    border-radius: 18px;
    padding: 1.2rem 2.75rem;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 32px rgba(232,160,32,0.4);
  }

  .btn-cta-big:hover {
    background: #F0B030;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(232,160,32,0.5);
  }

  .btn-cta-big:active { transform: translateY(0) scale(0.99); }

  .cta-note {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: rgba(247,240,230,0.35);
    position: relative;
    z-index: 1;
    letter-spacing: 0.03em;
  }

  /* Divider */
  .section-divider {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    border: none;
    border-top: 1px solid rgba(196,98,45,0.1);
  }

  /* ===== RESPONSIVE ===== */
  /* ===== NAV LINKS ===== */
  .header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(196,98,45,0.15);
    flex: 1;
  }

  .nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .nav-link:hover {
    color: var(--bark);
    background: var(--soft);
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .header-tagline {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
  }

  /* ===== FOOTER ===== */
  .site-footer {
    position: relative;
    z-index: 10;
    background: var(--bark);
    color: rgba(247,240,230,0.6);
    padding: 3rem 3rem 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .footer-inner {
    max-width: 960px;
    margin: 0 auto;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(247,240,230,0.08);
    margin-bottom: 2rem;
  }

  .footer-brand .logo-text {
    color: var(--cream);
    font-size: 1.3rem;
  }

  .footer-brand .logo-text span { color: var(--gold); }

  .footer-tagline {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.7;
    margin-top: 0.75rem;
    color: rgba(247,240,230,0.5);
    max-width: 240px;
  }

  .footer-col-title {
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-link {
    font-size: 0.8rem;
    color: rgba(247,240,230,0.5);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
    cursor: pointer;
  }

  .footer-link:hover { color: var(--gold); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-copy {
    font-size: 0.75rem;
    color: rgba(247,240,230,0.3);
    font-weight: 300;
  }

  .footer-rgpd {
    font-size: 0.7rem;
    color: rgba(247,240,230,0.25);
    font-weight: 300;
    text-align: right;
    max-width: 320px;
    line-height: 1.6;
  }

  /* ===== MODAL LEGAL ===== */
  .legal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,43,31,0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .legal-modal-overlay.open { display: flex; }

  .legal-modal {
    background: var(--cream);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(61,43,31,0.3);
    position: relative;
  }

  .legal-modal h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
  }

  .legal-modal h3 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bark);
    margin: 1.5rem 0 0.5rem;
  }

  .legal-modal p, .legal-modal li {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
  }

  .legal-modal ul { padding-left: 1.25rem; margin-top: 0.4rem; }

  .legal-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 34px;
    height: 34px;
    background: var(--soft);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .legal-modal-close:hover { background: var(--acorn); color: white; }

  /* ===== COOKIE BANNER ===== */
  .cookie-banner {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 99999;
    isolation: isolate;
    pointer-events: auto;
    touch-action: manipulation;
    background: var(--bark);
    border-radius: 18px;
    padding: 1rem 1.25rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 8px 40px rgba(61,43,31,0.3), 0 0 0 1px rgba(247,240,230,0.07);
    max-width: 680px;
    width: calc(100vw - 3rem);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
  }

  .cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .cookie-text {
    font-size: 0.8rem;
    color: rgba(247,240,230,0.7);
    font-weight: 300;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
  }

  .cookie-text a {
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
  }

  .cookie-text a:hover { text-decoration: underline; }

  .cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    pointer-events: auto;
  }

  .cookie-btn-accept {
    background: var(--gold);
    color: var(--bark);
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .cookie-btn-accept:hover { background: #F0B030; }
  .cookie-btn-accept, .cookie-btn-reject {
    min-height: 48px;
    min-width: 80px;
    -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
  }

  .cookie-btn-reject {
    background: rgba(247,240,230,0.08);
    color: rgba(247,240,230,0.5);
    border: 1px solid rgba(247,240,230,0.12);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .cookie-btn-reject:hover { color: rgba(247,240,230,0.8); border-color: rgba(247,240,230,0.25); }

  @media (max-width: 560px) {
    .cookie-banner { flex-wrap: wrap; gap: 1rem; }
    .cookie-actions { width: 100%; flex-shrink: 0; }
    .cookie-btn-accept, .cookie-btn-reject {
      flex: 1;
      text-align: center;
      min-height: 52px;
      padding: 0.85rem 0.5rem;
    }
  }

  /* ===== BLOG SIN EXCUSAS ===== */
  .blog-section {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .blog-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(61,43,31,0.07), 0 0 0 1px rgba(196,98,45,0.06);
    border-top: 3px solid var(--acorn);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
  }

  .blog-card:nth-child(2) { border-top-color: var(--moss); }
  .blog-card:nth-child(3) { border-top-color: var(--gold); }

  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(61,43,31,0.13);
  }

  .blog-card-body {
    padding: 1.75rem 1.5rem;
  }

  .blog-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
  }

  .blog-card:nth-child(1) .blog-tag { background: rgba(196,98,45,0.1); color: var(--acorn); }
  .blog-card:nth-child(2) .blog-tag { background: rgba(92,122,78,0.1); color: var(--moss); }
  .blog-card:nth-child(3) .blog-tag { background: rgba(232,160,32,0.12); color: #9A6A0A; }

  .blog-card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1.25rem;
  }

  .blog-card-expanded {
    display: none;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    border-top: 1px solid var(--soft);
    padding-top: 1rem;
    margin-top: 0.25rem;
  }

  .blog-card-expanded p { margin-bottom: 0.9rem; }
  .blog-card-expanded p:last-child { margin-bottom: 0; }
  .blog-card-expanded strong { color: var(--bark); font-weight: 500; }

  .blog-card.open .blog-card-expanded { display: block; }

  .blog-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--acorn);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    transition: gap 0.2s ease;
  }

  .blog-read-btn:hover { gap: 0.7rem; }
  .blog-card:nth-child(2) .blog-read-btn { color: var(--moss); }
  .blog-card:nth-child(3) .blog-read-btn { color: #9A6A0A; }

  .blog-read-arrow { transition: transform 0.3s ease; display: inline-block; }
  .blog-card.open .blog-read-arrow { transform: rotate(90deg); }

  @media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  }

  /* ===== HISTORIA DE NUTI ===== */
  .nuti-section {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
  }

  .nuti-story-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(61,43,31,0.1), 0 0 0 1px rgba(196,98,45,0.08);
    display: grid;
    grid-template-columns: 1fr 1.6fr;
  }

  .nuti-visual {
    background: linear-gradient(160deg, var(--bark) 0%, #5C3A24 100%);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
  }

  .nuti-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(232,160,32,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(92,122,78,0.1) 0%, transparent 50%);
  }

  .nuti-big-emoji {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    animation: squirrelBob 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  }

  .nuti-name-tag {
    position: relative;
    z-index: 1;
    background: rgba(247,240,230,0.1);
    border: 1px solid rgba(247,240,230,0.15);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    font-family: 'Fraunces', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.02em;
  }

  .nuti-quote-mark {
    position: relative;
    z-index: 1;
    font-family: 'Fraunces', serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.25;
    line-height: 0.5;
    align-self: flex-start;
    margin-top: 1rem;
  }

  .nuti-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
  }

  .nuti-content .section-label {
    text-align: left;
    margin-bottom: 0;
  }

  .nuti-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .nuti-title em {
    font-style: italic;
    color: var(--acorn);
    font-weight: 300;
  }

  .nuti-para {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.85;
  }

  .nuti-para strong {
    color: var(--bark);
    font-weight: 500;
  }

  .nuti-moral {
    background: linear-gradient(135deg, var(--soft), rgba(212,232,194,0.4));
    border-radius: 14px;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--moss);
    font-size: 0.85rem;
    color: var(--bark);
    font-weight: 300;
    line-height: 1.7;
    font-style: italic;
  }

  .nuti-moral strong {
    font-style: normal;
    font-weight: 600;
    color: var(--moss);
  }

  @media (max-width: 768px) {
    .nuti-story-card {
      grid-template-columns: 1fr;
    }
    .nuti-visual {
      padding: 2.5rem 2rem;
      flex-direction: row;
      justify-content: flex-start;
      gap: 1.5rem;
    }
    .nuti-big-emoji { font-size: 3.5rem; }
    .nuti-quote-mark { display: none; }
    .nuti-content { padding: 2rem 1.5rem; }
  }

  /* ===== PRICING ===== */
  .pricing-section {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .pricing-card {
    background: white;
    border-radius: 26px;
    padding: 2.25rem 2rem;
    box-shadow: 0 2px 24px rgba(61,43,31,0.08), 0 0 0 1px rgba(196,98,45,0.07);
    border-top: 3px solid var(--soft);
    position: relative;
  }

  .pricing-card-pro {
    background: var(--bark);
    border-top: 3px solid var(--gold);
    box-shadow: 0 12px 48px rgba(61,43,31,0.25);
    transform: translateY(-8px);
  }

  .pricing-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.85rem;
    border-radius: 100px;
    background: var(--soft);
    color: var(--muted);
    margin-bottom: 1.25rem;
  }

  .pricing-badge.pro {
    background: rgba(232,160,32,0.15);
    color: var(--gold);
  }

  .pricing-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }

  .pricing-name {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
  }

  .pricing-card-pro .pricing-name { color: var(--cream); }

  .pricing-price {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .pricing-card-pro .pricing-price { color: var(--gold); }
  .pricing-currency { font-size: 1.5rem; font-weight: 600; }

  .pricing-period {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 1.75rem;
  }

  .pricing-card-pro .pricing-period { color: rgba(247,240,230,0.45); }

  .pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
    font-size: 0.83rem;
    color: var(--muted);
    font-weight: 300;
  }

  .pricing-card-pro .pricing-features { color: rgba(247,240,230,0.7); }

  .pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .feat-check {
    width: 18px; height: 18px;
    background: rgba(92,122,78,0.12);
    color: var(--moss);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .feat-check.pro {
    background: rgba(232,160,32,0.15);
    color: var(--gold);
  }

  .feat-muted {
    width: 18px; height: 18px;
    color: var(--soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .pricing-btn {
    width: 100%;
    justify-content: center;
  }

  .pricing-btn-pro {
    width: 100%;
    background: var(--gold);
    color: var(--bark);
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(232,160,32,0.35);
    letter-spacing: -0.01em;
  }

  .pricing-btn-pro:hover {
    background: #F0B030;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232,160,32,0.4);
  }

  .pricing-note {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(247,240,230,0.3);
    margin-top: 0.75rem;
    font-weight: 300;
  }

  /* Comparativa Gratis vs Pro */
  .pricing-compare-wrap {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(61,43,31,0.08);
  }
  .pricing-compare-title {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bark);
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .pricing-compare-table {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(61,43,31,0.06);
    border: 1px solid rgba(61,43,31,0.06);
  }
  .pricing-compare-row {
    display: grid;
    grid-template-columns: 1fr 60px 60px;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    align-items: center;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(61,43,31,0.06);
  }
  .pricing-compare-row:last-child { border-bottom: none; }
  .pricing-compare-header {
    background: var(--cream);
    font-weight: 600;
    color: var(--bark);
  }
  .pricing-compare-feature { color: var(--text); }
  .pricing-compare-gratis,
  .pricing-compare-pro {
    text-align: center;
    font-weight: 600;
  }
  .pricing-compare-gratis { color: var(--muted); }
  .pricing-compare-pro { color: var(--acorn); }
  .compare-yes { color: var(--moss); font-size: 1.1rem; }
  .compare-no { color: rgba(61,43,31,0.25); font-size: 1rem; }
  @media (max-width: 600px) {
    .pricing-compare-row {
      grid-template-columns: 1fr 50px 50px;
      padding: 0.75rem 1rem;
      font-size: 0.82rem;
    }
  }

  @media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card-pro { transform: none; }
    .pricing-compare-wrap { margin-top: 2.5rem; padding-top: 2rem; }
  }

  /* ===== DASHBOARD LAYOUT ===== */
  #screen-results.active {
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .dash-header {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    background: white;
    border-bottom: 1px solid rgba(196,98,45,0.12);
    box-shadow: 0 2px 12px rgba(61,43,31,0.06);
  }

  .dash-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .dash-user-greeting {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bark);
  }

  .dash-url-badge {
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--soft);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-weight: 300;
    font-family: monospace;
  }

  .dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;
    min-height: 0;
    background: var(--cream);
    transition: grid-template-columns 0.25s ease;
  }

  .dash-sidebar {
    transition: width 0.25s ease, padding 0.25s ease;
    background: white;
    border-right: 1px solid rgba(196,98,45,0.1);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
  }

  .dash-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
  }

  .dash-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s;
    position: relative;
  }

  .dash-nav-item:hover { background: var(--soft); color: var(--bark); }

  .dash-nav-item.active {
    background: rgba(196,98,45,0.08);
    color: var(--acorn);
    font-weight: 500;
  }

  .dash-nav-item.coming { opacity: 0.55; cursor: default; }
  .dash-nav-item.coming:hover { background: none; color: var(--muted); }

  .dash-nav-item.dash-nav-pro {
    background: linear-gradient(135deg, rgba(196,98,45,0.12), rgba(232,160,32,0.1));
    border: 1.5px solid rgba(196,98,45,0.3);
    color: var(--acorn);
    font-weight: 600;
  }
  .dash-nav-item.dash-nav-pro:hover {
    background: linear-gradient(135deg, rgba(196,98,45,0.18), rgba(232,160,32,0.15));
    border-color: var(--acorn);
  }

  .dash-nav-item.dash-nav-gestionar {
    color: var(--moss);
    font-weight: 500;
  }
  .dash-nav-item.dash-nav-gestionar:hover {
    background: rgba(92,122,78,0.08);
    color: var(--moss);
  }

  .dash-nav-icon { font-size: 1.1rem; flex-shrink: 0; }

  .dash-nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    background: rgba(232,160,32,0.15);
    color: var(--gold);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  .dash-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .dash-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .dash-sidebar.collapsed {
    width: 56px;
    min-width: 56px;
    padding: 1rem 0.5rem;
  }

  .dash-sidebar.collapsed .dash-nav-label,
  .dash-sidebar.collapsed .dash-nav-item span:not(.dash-nav-icon),
  .dash-sidebar.collapsed .dash-nav-badge,
  .dash-sidebar.collapsed .collapse-text,
  .dash-sidebar.collapsed .sidebar-action-text {
    display: none;
  }

  .dash-sidebar.collapsed .sidebar-action-btn {
    padding: 0.6rem;
    justify-content: center;
  }

  .dash-sidebar.collapsed .dash-nav-item {
    justify-content: center;
    padding: 0.75rem;
  }

  .dash-sidebar.collapsed .dash-collapse-btn {
    padding: 0.6rem;
  }

  .dash-sidebar.collapsed .collapse-icon {
    transform: rotate(180deg);
  }

  .dash-layout.sidebar-collapsed {
    grid-template-columns: 56px 1fr;
  }

  .settings-list { display: flex; flex-direction: column; gap: 1rem; }
  .settings-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--soft);
    border-radius: 14px;
    flex-wrap: wrap;
  }

  .dash-main {
    padding: 2rem;
    overflow-y: auto;
    width: 100%;
    min-height: 0;
  }

  .dash-tab { display: none; }
  .dash-tab.active { display: block; }

  .dash-tab-hero {
    text-align: center;
    padding: 3rem 2rem;
  }

  /* Hide global header on dashboard */
  #screen-results.active ~ header,
  #screen-celebration.active ~ header,
  #screen-debts.active ~ header,
  #screen-onboarding.active ~ header,
  #screen-results.active + * header { display: none; }

  /* Mobile dashboard */
  @media (max-width: 768px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar {
      position: static;
      height: auto;
      flex-direction: row;
      overflow-x: auto;
      padding: 0.75rem 1rem;
      border-right: none;
      border-bottom: 1px solid rgba(196,98,45,0.1);
      gap: 0.5rem;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .dash-sidebar::-webkit-scrollbar { display: none; }
    .dash-nav-label { display: none; }
    .dash-nav-item {
      white-space: nowrap;
      flex-shrink: 0;
      padding: 0.65rem 0.9rem;
      min-height: 44px;
      -webkit-tap-highlight-color: rgba(196,98,45,0.15);
    }
    .dash-sidebar-footer { display: none; }
    .dash-sidebar.collapsed, .dash-layout.sidebar-collapsed { grid-template-columns: 1fr !important; }
    .dash-main {
      padding: 1.25rem 1rem;
      padding-bottom: calc(5rem + env(safe-area-inset-bottom));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
    }
    .dash-url-badge { display: none; }
    .dash-header {
      padding: 0.85rem 1rem;
      padding-top: calc(0.85rem + env(safe-area-inset-top));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .dash-header-right {
      gap: 0.5rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .dash-header-btn {
      font-size: 0.78rem !important;
      padding: 0.5rem 0.75rem !important;
      min-height: 40px;
      -webkit-tap-highlight-color: rgba(196,98,45,0.15);
    }
    .dash-user-greeting { font-size: 0.8rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* Barra inferior móvil: Editar + Imprimir */
    .dash-mobile-actions {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 90;
      background: white;
      border-top: 1px solid rgba(196,98,45,0.1);
      padding: 0.6rem 1rem;
      padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
      gap: 0.75rem;
      box-shadow: 0 -4px 20px rgba(61,43,31,0.06);
    }
    .dash-mobile-action-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      min-height: 48px;
      background: var(--soft);
      border: 1.5px solid rgba(196,98,45,0.15);
      border-radius: 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--acorn);
      cursor: pointer;
      transition: all 0.2s;
      -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    }
    .dash-mobile-action-btn:hover { background: rgba(196,98,45,0.08); border-color: var(--acorn); }
    .dash-mobile-action-icon { font-size: 1.1rem; }
  }
  @media (min-width: 769px) {
    .dash-mobile-actions { display: none !important; }
  }
  @media print {
    .dash-mobile-actions { display: none !important; }
  }

  /* ===== MOBILE GLOBAL FIXES ===== */
  @media (max-width: 768px) {
    /* Cookie banner: bien arriba para aceptar fácil y rápido */
    .cookie-banner {
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
      padding: 1.25rem calc(1.25rem + env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) calc(1.25rem + env(safe-area-inset-left));
      left: 0.75rem;
      right: 0.75rem;
      bottom: 5rem;
      max-width: none;
      width: calc(100% - 1.5rem);
      border-radius: 18px;
      transform: translateY(120px);
      box-sizing: border-box;
    }
    .cookie-banner.visible {
      transform: translateY(0);
    }
    .cookie-banner .cookie-icon { order: 1; flex-shrink: 0; }
    .cookie-banner .cookie-text {
      order: 3;
      flex: 0 0 auto !important;
      min-width: 0;
    }
    .cookie-banner .cookie-actions {
      order: 2;
      width: 100%;
      display: flex !important;
      gap: 0.75rem;
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      margin-top: 0.25rem;
      visibility: visible !important;
      opacity: 1 !important;
    }
    .cookie-banner .cookie-text a { display: inline; }
    .cookie-banner .cookie-btn-accept,
    .cookie-banner .cookie-btn-reject {
      flex: 1;
      text-align: center;
      padding: 0.9rem 1rem;
      min-height: 56px;
      font-size: 0.9rem;
      font-weight: 600;
      -webkit-tap-highlight-color: rgba(196,98,45,0.3);
      touch-action: manipulation;
      cursor: pointer;
      pointer-events: auto;
      -webkit-appearance: button;
      appearance: button;
    }

    /* Header compact on mobile: logo + hamburger siempre visibles */
    header {
      padding: 0.85rem 1rem;
      padding-top: calc(0.85rem + env(safe-area-inset-top));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      gap: 0.5rem;
      overflow: visible;
    }
    header .logo {
      flex-shrink: 0;
      display: flex;
    }
    .header-nav { display: none !important; }
    .header-right { display: none !important; }
    .mobile-nav-wrap { display: flex !important; }

    /* Hero tighter */
    .hero {
      padding: 2rem calc(1.25rem + env(safe-area-inset-right)) 1.5rem calc(1.25rem + env(safe-area-inset-left));
    }
    .hero h1 { font-size: 1.9rem; }

    /* App container full width */
    .app-container {
      padding: 0 0.75rem 2rem;
      padding-left: calc(0.75rem + env(safe-area-inset-left));
      padding-right: calc(0.75rem + env(safe-area-inset-right));
      padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    /* Cards no overflow */
    .card {
      padding: 1.25rem calc(1rem + env(safe-area-inset-right)) 1.25rem calc(1rem + env(safe-area-inset-left));
      max-width: 100%;
    }

    /* Results grid single column */
    .results-grid { grid-template-columns: 1fr; }

    /* Plan table responsive */
    .month-row { grid-template-columns: 55px 1fr 85px; font-size: 0.78rem; }
    .month-row > div:nth-child(4) { display: none; }
  }

  @media (max-width: 480px) {
    .hero h1 { font-size: 1.55rem; }
    .btn-hero-cta { width: 100%; justify-content: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card-pro { transform: none; }
    .nuti-story-card { grid-template-columns: 1fr; }
    .nuti-visual { flex-direction: row; padding: 1.5rem; justify-content: flex-start; }
    .nuti-big-emoji { font-size: 2.5rem; }
    .nuti-quote-mark { display: none; }
    .nuti-content { padding: 1.5rem 1rem; }
    .how-steps { grid-template-columns: 1fr; }
    .how-steps::before { display: none; }
    .chat-bubble { bottom: calc(5rem + env(safe-area-inset-bottom)); }
  }

  /* Ocultar chat cuando el banner de cookies está visible para que los botones sean clicables */
  @media (max-width: 768px) {
    body.cookie-banner-visible .chat-bubble { display: none !important; }
  }


  /* ===== PREMIUM DASHBOARD HERO ===== */
  .dash-hero-premium {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(61,43,31,0.03), rgba(92,122,78,0.04));
    border-radius: 24px;
    border: 1px solid rgba(196,98,45,0.08);
    box-shadow: 0 4px 24px rgba(61,43,31,0.04);
  }

  .progress-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .progress-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }

  .progress-ring-bg {
    stroke: rgba(196,98,45,0.12);
    transition: stroke 0.3s ease;
  }

  .progress-ring-fill {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .progress-ring-wrap {
    background: linear-gradient(135deg, rgba(196,98,45,0.06), rgba(92,122,78,0.05));
    border-radius: 50%;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(196,98,45,0.08);
  }

  .progress-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .progress-ring-number {
    display: flex;
    align-items: baseline;
    gap: 0;
  }

  .progress-ring-value {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--acorn);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .progress-ring-pct {
    font-size: 1rem;
    font-weight: 700;
    color: var(--acorn);
    margin-left: 1px;
  }

  .progress-ring-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 0.2rem;
  }

  .dash-hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .days-counter-card.premium {
    margin: 0;
    flex: 1;
  }

  .savings-banner.premium {
    margin: 0;
  }

  @media (max-width: 640px) {
    .dash-hero-premium {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 1.5rem;
    }
    .progress-ring-wrap { margin: 0 auto; }
  }

  /* ===== DAYS COUNTER + SAVINGS BANNER ===== */
  .dash-highlights {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .days-counter-card {
    background: linear-gradient(135deg, var(--bark), #5C3A24);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: var(--cream);
    box-shadow: 0 8px 32px rgba(61,43,31,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .days-counter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(61,43,31,0.25);
  }

  .days-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(247,240,230,0.55);
    margin-bottom: 0.5rem;
  }

  .days-number {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.4rem;
  }

  .days-sub { font-size: 0.72rem; color: rgba(247,240,230,0.5); }

  .savings-banner {
    background: linear-gradient(135deg, rgba(92,122,78,0.1), rgba(92,122,78,0.05));
    border: 1.5px solid rgba(92,122,78,0.25);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .savings-icon { font-size: 2.2rem; flex-shrink: 0; }
  .savings-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; color: var(--bark); margin-bottom: 0.3rem; }
  .savings-highlight { color: var(--moss); font-size: 1.3rem; }
  .savings-sub { font-size: 0.82rem; color: var(--muted); }

  /* ===== PLAN DE AHORRO: Regla ardilla, simulador, objetivos ===== */
  .ardilla-rule-card { background: linear-gradient(135deg, rgba(92,122,78,0.06), rgba(196,98,45,0.04)); border-color: rgba(92,122,78,0.15); }
  .ardilla-rule-tips { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.5rem 0; }
  .ardilla-tip { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.88rem; color: var(--bark); line-height: 1.6; padding: 0.75rem 1rem; background: white; border-radius: 12px; border: 1px solid var(--soft); }
  .ardilla-tip-icon { font-size: 1.2rem; flex-shrink: 0; }
  .ahorro-sim-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 1rem; }
  .ahorro-scenarios { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
  .ahorro-scenario-btn { background: var(--soft); border: 1.5px solid transparent; border-radius: 10px; padding: 0.5rem 1rem; font-size: 0.82rem; font-family: 'DM Sans', sans-serif; color: var(--muted); cursor: pointer; transition: all 0.2s; }
  .ahorro-scenario-btn:hover { background: rgba(196,98,45,0.08); color: var(--acorn); }
  .ahorro-scenario-btn.active { background: rgba(196,98,45,0.1); border-color: var(--acorn); color: var(--acorn); font-weight: 500; }
  .objetivos-select-wrap { margin-top: 1rem; }
  .objetivos-select-wrap select { width: 100%; padding: 0.75rem 1rem; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; border: 1.5px solid var(--soft); border-radius: 12px; background: white; color: var(--bark); }
  .objetivo-result { margin-top: 1.25rem; padding: 1.25rem; background: linear-gradient(135deg, rgba(92,122,78,0.08), rgba(92,122,78,0.04)); border-radius: 14px; border: 1px solid rgba(92,122,78,0.2); text-align: center; }
  .objetivo-meses { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 700; color: var(--moss); }
  .objetivo-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
  .pro-upsell-card { background: linear-gradient(135deg, rgba(61,43,31,0.04), rgba(196,98,45,0.06)); border: 1.5px solid rgba(196,98,45,0.15); }
  .pro-lock-overlay { padding: 2rem; }
  .pro-upsell-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
  .pro-upsell-card .pro-upsell-badge { background: linear-gradient(135deg, var(--bark), #5C3A24); color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.5rem 1rem; border-radius: 12px; }
  .pro-upsell-card .pro-upsell-heading { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; color: var(--bark); }
  .pro-upsell-card .pro-upsell-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; max-width: 360px; margin: 0; }
  .pro-upsell-card .btn-pro-cta { background: linear-gradient(135deg, var(--acorn), #a8552a); color: white; border: none; border-radius: 14px; padding: 0.75rem 1.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(196,98,45,0.25); }
  .pro-upsell-card .btn-pro-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,98,45,0.35); }
  @media (max-width: 640px) {
    .ahorro-sim-grid { grid-template-columns: 1fr; }
    .ahorro-scenarios { flex-direction: column; align-items: stretch; }
  }

  /* ===== PLAN FINANCIERO ===== */
  /* Stats bar */
  .pf-stats-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(196,98,45,0.1);
    box-shadow: 0 2px 16px rgba(61,43,31,0.06);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    gap: 0;
  }
  .pf-stat { flex: 1; text-align: center; }
  .pf-stat-sep { width: 1px; height: 36px; background: rgba(196,98,45,0.12); flex-shrink: 0; }
  .pf-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; margin-bottom: 0.3rem; }
  .pf-stat-value { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; color: var(--bark); }
  .pf-stat-value.orange { color: var(--acorn); }
  .pf-stat-value.green { color: var(--moss); }

  /* Recalc bar */
  .pf-recalc-bar {
    display: none;
    background: rgba(92,122,78,0.12);
    color: var(--moss);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: fadeUp 0.2s ease;
  }
  .pf-recalc-bar.visible { display: block; }

  /* Main 2-col layout */
  .pf-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .pf-edit-col { display: flex; flex-direction: column; gap: 1.25rem; }
  .pf-results-col { display: flex; flex-direction: column; gap: 0; }
  .pf-section-card { margin-bottom: 0 !important; }

  /* Section title */
  .pf-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
  }

  /* Income / expenses fields */
  .pf-inline-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--soft);
    gap: 1rem;
  }
  .pf-inline-field:last-of-type { border-bottom: none; }
  .pf-inline-field label { font-size: 0.88rem; color: var(--bark); font-weight: 400; }
  .pf-field-hint { font-size: 0.75rem; color: var(--muted); font-weight: 300; }
  .pf-input-wrap { display: flex; align-items: center; gap: 0.25rem; background: var(--cream); border: 1.5px solid var(--soft); border-radius: 10px; padding: 0.4rem 0.75rem; transition: border-color 0.2s; }
  .pf-input-wrap:focus-within { border-color: var(--acorn); }
  .pf-input-wrap span { font-size: 0.82rem; color: var(--muted); }
  .pf-input-wrap input { border: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--bark); width: 90px; text-align: right; }
  .pf-input-wrap input:focus { outline: none; }
  .pf-input-wrap input::-webkit-inner-spin-button { opacity: 0.4; }
  .pf-margen-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; padding: 0.65rem 0.9rem; background: var(--soft); border-radius: 10px; }
  .pf-margen-label { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
  .pf-margen-value { font-size: 0.92rem; font-weight: 600; color: var(--moss); }

  /* Debt list */
  .pf-debt-count { font-size: 0.75rem; color: var(--muted); font-weight: 300; }
  .pf-debt-cols-header {
    display: grid;
    grid-template-columns: 1fr 80px 55px 60px 24px;
    gap: 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 0 0.25rem 0.4rem;
    border-bottom: 1px solid var(--soft);
    margin-bottom: 0.5rem;
  }
  .pf-debt-item {
    display: grid;
    grid-template-columns: 1fr 80px 55px 60px 24px;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
  }
  .pf-di {
    background: var(--cream);
    border: 1.5px solid var(--soft);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--bark);
    width: 100%;
    transition: border-color 0.2s;
  }
  .pf-di:focus { outline: none; border-color: var(--acorn); }
  .pf-remove-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0.1rem; border-radius: 6px; transition: all 0.15s; }
  .pf-remove-btn:hover { color: var(--acorn); background: rgba(196,98,45,0.08); }
  .pf-add-debt-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px dashed rgba(196,98,45,0.3);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--acorn);
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
    transition: all 0.2s;
  }
  .pf-add-debt-btn:hover { background: rgba(196,98,45,0.06); border-style: solid; }

  /* Method selector */
  .pf-method-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.25rem; }
  .pf-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.9rem;
    background: var(--cream);
    border: 1.5px solid var(--soft);
    border-radius: 12px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    font-size: 1.4rem;
  }
  .pf-method-btn .pf-method-name { font-size: 0.82rem; font-weight: 600; color: var(--bark); }
  .pf-method-btn .pf-method-desc { font-size: 0.7rem; color: var(--muted); text-align: center; }
  .pf-method-btn.active { background: rgba(196,98,45,0.08); border-color: var(--acorn); }
  .pf-method-btn:hover:not(.active) { background: rgba(196,98,45,0.04); border-color: rgba(196,98,45,0.2); }

  /* Table */
  .pf-table-wrap { margin-top: 0.75rem; overflow-x: auto; }
  .pf-table-header, .pf-table-row {
    display: grid;
    grid-template-columns: 68px 1fr 1fr 80px;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    align-items: center;
    font-size: 0.84rem;
  }
  .pf-table-header { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--soft); font-weight: 500; padding-bottom: 0.5rem; }
  .pf-table-row { border-radius: 8px; transition: background 0.15s; color: var(--bark); }
  .pf-table-row:hover { background: rgba(196,98,45,0.04); }
  .pf-table-row.pf-free { background: rgba(92,122,78,0.07); }
  .pf-tag-free { background: rgba(92,122,78,0.2); color: var(--moss); padding: 0.2rem 0.55rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
  .pf-tag-pagando { color: rgba(61,43,31,0.2); font-size: 1rem; }
  .pf-savings-val { color: var(--moss); font-weight: 500; }
  .pf-table-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
  .pf-table-more { padding: 0.75rem 0.75rem 0; text-align: center; color: var(--muted); font-size: 0.78rem; }

  @media (max-width: 960px) {
    .pf-layout { grid-template-columns: 1fr; }
    .pf-stats-bar { padding: 1rem 1.25rem; gap: 0; }
  }
  @media (max-width: 768px) {
    .pf-stats-bar { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
    .pf-stat { flex: 1 1 40%; }
    .pf-stat-sep { display: none; }
    .pf-debt-cols-header, .pf-debt-item { grid-template-columns: 1fr 75px 50px 28px; }
    .pf-debt-cols-header > span:nth-child(4), .pf-di-payment { display: none; }
  }
  @media (max-width: 480px) {
    .pf-stat-value { font-size: 1.05rem; }
    .pf-table-header, .pf-table-row { grid-template-columns: 58px 1fr 70px; font-size: 0.78rem; }
    .pf-table-header > div:nth-child(3), .pf-table-row > div:nth-child(3) { display: none; }
  }

  /* ===== DEBT BREAKDOWN TABLE ===== */
  .debt-breakdown-header {
    display: grid;
    grid-template-columns: 1fr 90px 90px 90px 100px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid var(--soft);
    margin-bottom: 0.5rem;
  }

  .debt-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 90px 90px 90px 100px;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    align-items: center;
    transition: background 0.2s ease;
  }

  .debt-breakdown-row:hover {
    background: rgba(196,98,45,0.04);
  }
  .dbr-name { font-weight: 500; color: var(--bark); }
  .dbr-val { color: var(--muted); }
  .dbr-interest { color: var(--acorn); font-weight: 500; }

  /* ===== ANÁLISIS AVANZADO (colapsable) ===== */
  .advanced-analysis-wrap {
    margin-top: 1.5rem;
  }
  .advanced-analysis-toggle {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--soft);
    border: 1px solid rgba(196,98,45,0.15);
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, border-color 0.2s;
  }
  .advanced-analysis-toggle:hover {
    background: rgba(196,98,45,0.08);
    border-color: rgba(196,98,45,0.25);
  }
  .advanced-analysis-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }
  .advanced-analysis-inner.open {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
  }
  .advanced-analysis-inner .chart-card {
    margin-top: 1.5rem;
  }

  /* ===== MVP: WHAT IF, COMPARATOR, MILESTONES, HOURS, TARGET DATE ===== */
  .whatif-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
  .whatif-slider-wrap label { font-size: 0.88rem; color: var(--muted); display: block; margin-bottom: 0.4rem; }
  .whatif-slider-wrap input[type="range"] { width: 100%; accent-color: var(--acorn); }
  .whatif-result {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(92,122,78,0.08), rgba(92,122,78,0.04));
    border: 1px solid rgba(92,122,78,0.15);
    border-radius: 14px;
    font-weight: 600;
    color: var(--moss);
    font-size: 1rem;
  }
  .comparator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
  .comparator-col {
    background: var(--soft);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .comparator-col:hover {
    background: rgba(196,98,45,0.06);
    transform: translateY(-1px);
  }
  .comparator-method { font-weight: 600; color: var(--bark); margin-bottom: 0.5rem; }
  .comparator-months { font-size: 1.5rem; font-weight: 700; color: var(--acorn); }
  .comparator-interest { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
  @media (max-width: 500px) {
    .comparator-grid { grid-template-columns: 1fr; }
  }
  .milestones-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
  .milestone-badge { background: var(--soft); border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
  .milestone-badge.done { background: rgba(92,122,78,0.12); color: var(--moss); }
  .hours-result { font-size: 1.5rem; font-weight: 700; color: var(--acorn); }
  .target-date-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 1rem; }
  .target-date-result { flex: 1; min-width: 200px; padding: 1rem; background: var(--soft); border-radius: 12px; font-weight: 600; color: var(--moss); font-size: 1rem; }

  /* ===== SHARE BUTTON ===== */
  .share-wrap { text-align: center; padding: 1.5rem 0 0.5rem; }

  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1.5px solid rgba(196,98,45,0.25);
    border-radius: 14px;
    padding: 0.85rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--acorn);
    cursor: pointer;
    transition: all 0.2s;
  }

  .share-btn:hover {
    background: rgba(196,98,45,0.08);
    border-color: var(--acorn);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196,98,45,0.15);
  }

  .share-success {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--moss);
    font-weight: 500;
    animation: fadeUp 0.3s ease both;
  }

  /* Pro upsell banner */
  .pro-upsell-banner {
    background: linear-gradient(135deg, rgba(61,43,31,0.06), rgba(196,98,45,0.06));
    border: 1.5px solid rgba(196,98,45,0.15);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .pro-upsell-banner:hover {
    background: linear-gradient(135deg, rgba(61,43,31,0.08), rgba(196,98,45,0.08));
    border-color: rgba(196,98,45,0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(61,43,31,0.08);
  }

  .pro-upsell-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .pro-upsell-badge {
    background: linear-gradient(135deg, var(--bark), #5C3A24);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .pro-upsell-text {
    flex: 1;
    min-width: 200px;
  }

  .pro-upsell-text strong {
    display: block;
    color: var(--bark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .pro-upsell-text span {
    font-size: 0.82rem;
    color: var(--muted);
  }

  .pro-upsell-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--acorn);
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .dash-highlights { grid-template-columns: 1fr; }
    .debt-breakdown-header, .debt-breakdown-row { grid-template-columns: 1fr 70px 70px; }
    .debt-breakdown-header > div:nth-child(4),
    .debt-breakdown-header > div:nth-child(5),
    .debt-breakdown-row > div:nth-child(4),
    .debt-breakdown-row > div:nth-child(5) { display: none; }
  }
  @media (max-width: 480px) {
    .debt-breakdown-header, .debt-breakdown-row { grid-template-columns: 1fr 55px 55px; gap: 0.35rem; padding: 0.5rem 0.75rem; font-size: 0.78rem; }
    .results-grid.premium .stat-card { padding: 1rem 1rem; }
    .stat-value { font-size: 1.4rem; }
    .dash-hero-premium { padding: 1.25rem 1rem; }
    .chart-card { padding: 1.25rem 1rem; }
    .chart-title { font-size: 1rem; }
    .chart-sub { font-size: 0.78rem; }
    .month-row { grid-template-columns: 45px 1fr 70px; font-size: 0.72rem; padding: 0.5rem 0.65rem; }
    .month-row.header { font-size: 0.65rem; }
    .month-row > div:nth-child(4) { display: none; }
    .empathy-box { padding: 1rem 1rem; font-size: 0.9rem; }
  }


  /* ===== EDIT PANEL ===== */
  .dash-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
  }

  .edit-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1.5px solid rgba(196,98,45,0.2);
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--acorn);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(61,43,31,0.04);
  }
  .edit-toggle-btn:hover {
    background: rgba(196,98,45,0.06);
    border-color: var(--acorn);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(61,43,31,0.08);
  }

  .edit-panel {
    background: white;
    border: 1.5px solid rgba(196,98,45,0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
    animation: fadeUp 0.25s ease both;
    box-shadow: 0 8px 32px rgba(61,43,31,0.08);
  }
  .edit-panel.open { display: block; }

  @media (max-width: 768px) {
    .edit-panel {
      position: fixed;
      inset: 0;
      z-index: 200;
      margin: 0;
      border-radius: 0;
      max-height: 100vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom));
    }
    .edit-panel-header { margin-bottom: 1rem; }
    .edit-panel-close {
      min-width: 44px;
      min-height: 44px;
      -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    }
  }

  .edit-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
  }

  .edit-panel-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bark);
  }

  .edit-panel-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: all 0.15s;
  }
  .edit-panel-close:hover { background: var(--soft); color: var(--bark); }

  .edit-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
  }

  .edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .edit-field label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
  }

  .edit-debt-item {
    display: grid;
    grid-template-columns: 1fr 100px 80px 90px 32px;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .edit-debt-item input {
    background: var(--cream);
    border: 1.5px solid var(--soft);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--bark);
    width: 100%;
    transition: border-color 0.2s;
  }
  .edit-debt-item input:focus { outline: none; border-color: var(--acorn); }

  .edit-method-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--soft);
  }

  .edit-method-btn {
    background: var(--soft);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .edit-method-btn.active { background: rgba(196,98,45,0.08); border-color: var(--acorn); color: var(--acorn); font-weight: 500; }

  /* recalculating indicator */
  .recalc-indicator {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--moss);
    margin-top: 0.75rem;
    animation: fadeUp 0.2s ease both;
  }
  .recalc-indicator.show { display: flex; }
  .recalc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); animation: pulse 1s ease-in-out infinite; }

  /* ===== HIPOTECA TAB ===== */
  .hipoteca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .hipoteca-reality {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .reality-card {
    border-radius: 18px;
    padding: 1.5rem;
    border: 1.5px solid var(--soft);
  }

  .reality-fijo { background: rgba(196,98,45,0.04); border-color: rgba(196,98,45,0.2); }
  .reality-var  { background: rgba(92,122,78,0.04); border-color: rgba(92,122,78,0.2); }

  .reality-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 500;
  }

  .reality-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: var(--muted);
    padding: 0.35rem 0;
  }

  .reality-interest { color: var(--acorn); font-weight: 500; }
  .reality-divider { height: 1px; background: var(--soft); margin: 0.75rem 0; }

  .reality-total {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bark);
  }

  .hipoteca-chart-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .h-toggle-btn {
    background: var(--soft);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .h-toggle-btn.active { background: rgba(196,98,45,0.08); border-color: var(--acorn); color: var(--acorn); font-weight: 500; }

  .amort-header {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid var(--soft);
    margin-bottom: 0.5rem;
  }

  .amort-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.84rem;
    align-items: center;
    transition: background 0.15s;
  }
  .amort-row:hover { background: var(--soft); }
  .amort-row .amort-capital { color: var(--moss); font-weight: 500; }
  .amort-row .amort-interest { color: var(--acorn); }
  .amort-row .amort-remaining { color: var(--bark); font-weight: 500; }

  @media (max-width: 768px) {
    .hipoteca-grid { grid-template-columns: 1fr 1fr; }
    .hipoteca-reality { grid-template-columns: 1fr; }
    .edit-row { grid-template-columns: 1fr; }
    .edit-debt-item { grid-template-columns: 1fr 80px 32px; }
    .edit-debt-item input:nth-child(3),
    .edit-debt-item input:nth-child(4) { display: none; }
    .amort-header, .amort-row { grid-template-columns: 40px 1fr 1fr; }
    .amort-header > div:nth-child(3),
    .amort-header > div:nth-child(4),
    .amort-row > div:nth-child(3),
    .amort-row > div:nth-child(4) { display: none; }
  }

  @media (max-width: 480px) {
    .hipoteca-grid { grid-template-columns: 1fr; }
  }


  /* ===== GASTOS COMPRAVENTA ===== */
  .gastos-grid {
    display: grid;
    gap: 0;
  }

  .gasto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: background 0.15s;
  }
  .gasto-row:hover { background: rgba(232,160,32,0.06); }

  .gasto-nombre { color: var(--bark); display: flex; align-items: center; gap: 0.6rem; }
  .gasto-nombre .gasto-tag {
    font-size: 0.65rem;
    background: var(--soft);
    color: var(--muted);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 400;
  }
  .gasto-valor { font-weight: 500; color: var(--acorn); }
  .gasto-divider { height: 1px; background: rgba(232,160,32,0.2); margin: 0.25rem 0; }

  .gastos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem 0.25rem;
    border-top: 2px solid rgba(232,160,32,0.3);
    margin-top: 0.5rem;
  }

  .gastos-total-label {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bark);
  }

  .gastos-total-valor {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--acorn);
    letter-spacing: -0.03em;
  }

  /* ===== SEMÁFORO ===== */
  .semaforo-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .semaforo-bar-wrap {
    position: relative;
    height: 14px;
    border-radius: 100px;
    background: linear-gradient(to right, #5C7A4E 0%, #E8A020 45%, #C4622D 75%, #8B1A1A 100%);
    overflow: visible;
    margin: 0.5rem 0 1.5rem;
  }

  .semaforo-needle {
    position: absolute;
    top: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bark);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(61,43,31,0.3);
    transform: translateX(-50%);
    transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 2;
  }

  .semaforo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.5rem;
  }

  .semaforo-verdict {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1.5px solid transparent;
  }

  .semaforo-verdict.verde  { background: rgba(92,122,78,0.08);  border-color: rgba(92,122,78,0.25); }
  .semaforo-verdict.amarillo { background: rgba(232,160,32,0.08); border-color: rgba(232,160,32,0.3); }
  .semaforo-verdict.rojo   { background: rgba(196,98,45,0.08);  border-color: rgba(196,98,45,0.25); }
  .semaforo-verdict.gris   { background: var(--soft); border-color: transparent; }

  .semaforo-emoji { font-size: 2rem; flex-shrink: 0; line-height: 1; }

  .semaforo-texto-titulo {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bark);
    margin-bottom: 0.35rem;
  }

  .semaforo-texto-desc {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .semaforo-cuota-pct {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
  }

  .semaforo-cuota-pct.verde   { color: #5C7A4E; }
  .semaforo-cuota-pct.amarillo { color: var(--gold); }
  .semaforo-cuota-pct.rojo    { color: var(--acorn); }

  @media (max-width: 768px) {
    .semaforo-bar-wrap { height: 10px; }
    .semaforo-needle { width: 20px; height: 20px; top: -5px; }
  }


  /* ===== NEW ONBOARDING WIZARD ===== */
  #screen-onboarding {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: var(--cream);
    display: flex;
    flex-direction: column;
  }

  .ob-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
    position: relative;
    overflow: hidden;
  }

  /* ob-blob kept for compatibility */

  /* Progress bar top */
  .ob-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acorn), var(--gold));
    border-radius: 0 100px 100px 0;
    transition: width 0.5s cubic-bezier(0.34,1.2,0.64,1);
    z-index: 200;
    display: none;
  }
  #screen-onboarding.active .ob-progress-bar { display: block; }

  /* Top logo bar — solo visible cuando onboarding está activo */
  .ob-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 1.5rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-left: calc(1.5rem + env(safe-area-inset-left));
    padding-right: calc(1.5rem + env(safe-area-inset-right));
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(247,240,230,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196,98,45,0.08);
  }
  #screen-onboarding.active .ob-topbar { display: flex; }

  .ob-topbar-logo {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--bark);
    letter-spacing: -0.02em;
    cursor: pointer;
  }
  .ob-topbar-logo span { color: var(--acorn); }

  .ob-step-counter {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    background: var(--soft);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
  }

  .ob-step-dots {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    justify-content: center;
  }
  .ob-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--soft);
    transition: all 0.3s;
  }
  .ob-step-dot.done { background: var(--moss); }
  .ob-step-dot.active { background: var(--acorn); width: 18px; }

  /* Card wrapper */
  .ob-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 28px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(61,43,31,0.12), 0 0 0 1px rgba(196,98,45,0.07);
    margin-top: 4.5rem;
    animation: obCardIn 0.45s cubic-bezier(0.34,1.4,0.64,1) both;
  }

  @keyframes obCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .ob-card.exit {
    animation: obCardOut 0.25s ease forwards;
  }

  @keyframes obCardOut {
    to { opacity: 0; transform: translateY(-16px) scale(0.97); }
  }

  /* Nuti avatar */
  .ob-nuti {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .ob-nuti-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 40%;
    border: 2px solid white;
    box-shadow: 0 2px 12px rgba(196,98,45,0.3);
    animation: nutiPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both, squirrelBob 3s ease-in-out 0.5s infinite;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .ob-nuti {
    cursor: default;
  }

  @keyframes nutiPop {
    0%   { opacity: 0; transform: scale(0.4) translateY(16px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }

  /* Nuti message bubble */
  .ob-bubble {
    background: var(--soft);
    border-radius: 0 18px 18px 18px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--bark);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    position: relative;
    border-left: 3px solid var(--acorn);
  }

  .ob-bubble strong { color: var(--acorn); }

  .ob-question {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .ob-question em {
    color: var(--acorn);
    font-style: italic;
    font-weight: 300;
  }

  .ob-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Big input */
  .ob-input-wrap {
    position: relative;
    margin-bottom: 1.25rem;
  }

  .ob-input-prefix {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--acorn);
    pointer-events: none;
  }

  .ob-input {
    width: 100%;
    background: var(--cream);
    border: 2px solid var(--soft);
    border-radius: 16px;
    padding: 1rem 1rem 1rem 2.5rem;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bark);
    letter-spacing: -0.02em;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
  }
  .ob-input-wrap.currency-long .ob-input {
    padding-left: 5rem;
  }
  .ob-input::-webkit-outer-spin-button,
  .ob-input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .ob-input:focus {
    outline: none;
    border-color: var(--acorn);
    box-shadow: 0 0 0 4px rgba(196,98,45,0.1);
    background: white;
  }
  .ob-input::placeholder { color: rgba(61,43,31,0.2); }

  /* Live feedback pill */
  .ob-feedback {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    font-weight: 500;
    animation: fadeUp 0.25s ease both;
  }
  .ob-feedback.show { display: flex; }
  .ob-feedback.green { background: rgba(92,122,78,0.1); color: var(--moss); }
  .ob-feedback.orange { background: rgba(196,98,45,0.1); color: var(--acorn); }
  .ob-feedback.red { background: rgba(139,26,26,0.08); color: #8B1A1A; }

  /* CTA button */
  .ob-btn {
    width: 100%;
    background: var(--acorn);
    color: var(--cream);
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(196,98,45,0.28);
  }
  .ob-btn:hover { background: var(--bark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(61,43,31,0.2); }
  .ob-btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

  .ob-btn-back {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
  }
  .ob-btn-back:hover { color: var(--bark); }

  /* Method cards */
  .ob-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .ob-method-card {
    border: 2px solid var(--soft);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--cream);
  }
  .ob-method-card:hover { border-color: rgba(196,98,45,0.3); background: white; }
  .ob-method-card.selected {
    border-color: var(--acorn);
    background: rgba(196,98,45,0.05);
    box-shadow: 0 0 0 4px rgba(196,98,45,0.08);
  }

  .ob-method-emoji { font-size: 2rem; margin-bottom: 0.6rem; }
  .ob-method-name { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 700; color: var(--bark); margin-bottom: 0.4rem; }
  .ob-method-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
  .ob-method-tag { font-size: 0.65rem; background: var(--soft); color: var(--muted); padding: 0.2rem 0.5rem; border-radius: 100px; display: inline-block; margin-top: 0.5rem; }
  .ob-method-card.selected .ob-method-tag { background: rgba(196,98,45,0.12); color: var(--acorn); }
  .ob-method-preview { font-size: 0.85rem; color: var(--moss); font-weight: 500; margin-top: 0.75rem; min-height: 1.5em; }

  /* Country selector (welcome screen) */
  .ob-country-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bark);
    margin: 1.25rem 0 0.75rem;
  }
  .ob-country-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .ob-country-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--soft);
    border-radius: 14px;
    background: white;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    text-align: left;
  }
  .ob-country-btn:hover {
    border-color: rgba(196,98,45,0.3);
    background: rgba(196,98,45,0.03);
  }
  .ob-country-btn.selected {
    border-color: var(--acorn);
    background: rgba(196,98,45,0.08);
  }
  .ob-country-flag { font-size: 1.75rem; flex-shrink: 0; }
  .ob-country-name { font-weight: 600; color: var(--bark); font-size: 0.95rem; }

  /* Debt wizard */
  .ob-debt-card {
    background: var(--cream);
    border: 1.5px solid var(--soft);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    animation: fadeUp 0.3s ease both;
    position: relative;
  }

  .ob-debt-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .ob-debt-emoji {
    width: 36px; height: 36px;
    background: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1.5px solid var(--soft);
  }

  .ob-debt-input {
    flex: 1;
    background: white;
    border: 1.5px solid var(--soft);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--bark);
    transition: border-color 0.2s;
  }
  .ob-debt-input:focus { outline: none; border-color: var(--acorn); }

  .ob-debt-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }

  .ob-debt-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .ob-debt-field label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
  }

  .ob-debt-field input {
    background: white;
    border: 1.5px solid var(--soft);
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--bark);
    width: 100%;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
  }
  .ob-debt-field input::-webkit-outer-spin-button,
  .ob-debt-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .ob-debt-field input:focus { outline: none; border-color: var(--acorn); }

  .ob-debt-remove {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    background: none; border: none;
    color: var(--muted); font-size: 1rem;
    cursor: pointer; padding: 0.25rem;
    border-radius: 6px; transition: all 0.15s;
    line-height: 1;
  }
  .ob-debt-remove:hover { background: var(--soft); color: var(--bark); }

  .ob-add-debt-btn {
    width: 100%;
    background: none;
    border: 2px dashed rgba(196,98,45,0.25);
    border-radius: 14px;
    padding: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--acorn);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.25rem;
  }
  .ob-add-debt-btn:hover { border-color: var(--acorn); background: rgba(196,98,45,0.04); }

  /* Welcome screen specifics */
  .ob-welcome-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }
  .ob-welcome-title em { color: var(--acorn); font-style: italic; font-weight: 300; }

  .ob-welcome-sub {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .ob-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(92,122,78,0.1);
    color: var(--moss);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
  }

  .ob-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--soft);
  }

  .ob-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--muted);
  }

  /* Summary preview */
  .ob-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .ob-summary-item {
    background: var(--cream);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--soft);
  }

  .ob-summary-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.3rem;
  }

  .ob-summary-val {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bark);
    letter-spacing: -0.02em;
  }

  .ob-summary-val.orange { color: var(--acorn); }
  .ob-summary-val.green { color: var(--moss); }

  /* Mobile */
  @media (max-width: 480px) {
    .ob-card { padding: 2rem 1.5rem 1.75rem; border-radius: 24px; margin-top: 4rem; }
    .ob-method-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .ob-method-card { padding: 1rem 0.75rem; }
    .ob-debt-amounts { grid-template-columns: 1fr 1fr; }
    .ob-debt-amounts .ob-debt-field:last-child { grid-column: 1 / -1; }
    .ob-input { font-size: 1.3rem; }
    .ob-trust-row { gap: 0.75rem; flex-wrap: wrap; }
  }


  /* ===== AUTH MODALS ===== */
  .auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61,43,31,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .auth-modal-overlay.open { display: flex; }

  .auth-modal {
    background: white;
    border-radius: 28px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(61,43,31,0.2), 0 0 0 1px rgba(196,98,45,0.08);
    animation: obCardIn 0.4s cubic-bezier(0.34,1.4,0.64,1) both;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Modal registro y plan: fijo, sin scroll, más amplio */
  .auth-modal-fixed {
    max-width: 480px !important;
    overflow: hidden !important;
    padding: 2.25rem 2rem !important;
  }
  #modal-register-celebration .auth-modal-fixed {
    width: 100%;
  }
  #modal-register-celebration .clerk-mount-wrap {
    min-height: 300px;
    overflow: visible !important;
  }

  .auth-modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: var(--soft);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .auth-modal-close:hover { background: var(--soft); color: var(--bark); transform: scale(1.1); }

  .plan-select-btn:hover { border-color: var(--acorn) !important; background: rgba(196,98,45,0.08) !important; }

  /* ===== PLAN SELECT MODAL (Pro destacado, conversión) ===== */
  .plan-select-modal {
    max-width: 700px !important;
    padding: 2.25rem 2rem !important;
    overflow-y: auto !important;
    max-height: 90vh;
  }
  .plan-select-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  .plan-select-header-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.75rem;
  }
  .plan-select-header .auth-modal-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }
  .plan-select-header .auth-modal-sub {
    margin-bottom: 0;
    font-size: 0.9rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .plan-select-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
  .plan-select-card {
    border: none;
    background: white;
    border-radius: 22px;
    padding: 2rem 1.75rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34,1.2,0.64,1);
    box-shadow: 0 4px 24px rgba(61,43,31,0.08);
    border: 2px solid rgba(61,43,31,0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .plan-select-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(61,43,31,0.12);
  }
  .plan-select-pro {
    background: linear-gradient(155deg, #3D2B1F 0%, #2a1e14 100%);
    border-color: rgba(232,160,32,0.5);
    box-shadow: 0 12px 48px rgba(61,43,31,0.4), 0 0 0 2px rgba(232,160,32,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .plan-select-pro:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 56px rgba(61,43,31,0.45), 0 0 0 2px rgba(232,160,32,0.4);
  }
  .plan-select-pro-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(232,160,32,0.08) 0%, transparent 50%);
    pointer-events: none;
  }
  .plan-select-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--gold) 0%, #d4a020 100%);
    color: var(--bark);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(232,160,32,0.4);
  }
  .plan-select-icon { font-size: 2.25rem; margin-bottom: 0.85rem; }
  .plan-select-name {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
  }
  .plan-select-pro .plan-select-name { color: var(--cream); }
  .plan-select-price-wrap {
    margin-bottom: 0.25rem;
  }
  .plan-select-price {
    font-family: 'Fraunces', serif;
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .plan-select-pro .plan-select-price { color: var(--gold); }
  .plan-select-currency { font-size: 1.3rem; font-weight: 600; }
  .plan-select-period {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 0.5rem;
  }
  .plan-select-pro .plan-select-period { color: rgba(247,240,230,0.5); }
  .plan-select-save {
    font-size: 0.78rem;
    color: var(--moss);
    margin-bottom: 1.5rem;
  }
  .plan-select-pro .plan-select-save { color: rgba(232,160,32,0.95); }
  .plan-select-trust {
    font-size: 0.72rem;
    color: rgba(247,240,230,0.5);
    text-align: center;
    margin-top: 0.75rem;
  }
  .plan-select-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
  }
  .plan-select-pro .plan-select-features { color: rgba(247,240,230,0.9); }
  .plan-select-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
  }
  .plan-select-features .feat-dot {
    color: var(--moss);
    flex-shrink: 0;
  }
  .plan-select-features .feat-dot.pro { color: var(--gold); }
  .plan-select-features .feat-muted {
    color: rgba(61,43,31,0.35);
    font-size: 0.8rem;
  }
  .plan-select-pro .plan-select-features .feat-muted { color: rgba(247,240,230,0.45); }
  .plan-select-cta {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: var(--acorn);
    color: white;
    text-align: center;
    transition: all 0.2s;
    margin-top: auto;
    box-shadow: 0 6px 24px rgba(196,98,45,0.25);
  }
  .plan-select-pro .plan-select-cta {
    background: linear-gradient(135deg, var(--gold) 0%, #d4a020 100%);
    color: var(--bark);
    box-shadow: 0 6px 24px rgba(232,160,32,0.35);
  }
  .plan-select-pro .plan-select-cta:hover {
    background: linear-gradient(135deg, #f0b020 0%, var(--gold) 100%);
    box-shadow: 0 8px 28px rgba(232,160,32,0.45);
  }
  .plan-select-cta-secondary {
    background: var(--soft);
    color: var(--bark);
    font-weight: 600;
    box-shadow: none;
  }
  .plan-select-cta-secondary:hover { background: rgba(61,43,31,0.1); }
  .plan-select-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
  @media (max-width: 640px) {
    .plan-select-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
    .plan-select-pro { order: -1; }
    .plan-select-modal {
      padding: 1.5rem 1.25rem !important;
      max-height: 85vh;
      overflow-y: auto;
    }
    .plan-select-header .auth-modal-title { font-size: 1.3rem; }
    .plan-select-card { padding: 1.5rem 1.25rem; }
    .plan-select-cta {
      padding: 1rem 1.25rem;
      min-height: 48px;
      -webkit-tap-highlight-color: rgba(196,98,45,0.2);
    }
  }

  .auth-modal-nuti {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: squirrelBob 3s ease-in-out infinite;
  }

  .auth-modal-title {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
  }

  .auth-modal-sub {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }

  .auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .auth-field label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--bark);
  }

  .auth-field input {
    background: var(--cream);
    border: 1.5px solid var(--soft);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--bark);
    width: 100%;
    transition: all 0.2s;
    -webkit-appearance: none;
  }
  .auth-field input:focus {
    outline: none;
    border-color: var(--acorn);
    background: white;
    box-shadow: 0 0 0 4px rgba(196,98,45,0.1);
  }
  .auth-field input::placeholder { color: rgba(61,43,31,0.3); }

  .auth-btn-submit {
    width: 100%;
    background: var(--acorn);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.95rem;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(196,98,45,0.28);
  }
  .auth-btn-submit:hover { background: var(--bark); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(61,43,31,0.2); }

  .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--soft);
  }

  .auth-switch {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 1.25rem;
  }
  .auth-switch button {
    background: none;
    border: none;
    color: var(--acorn);
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .auth-notice {
    background: rgba(92,122,78,0.08);
    border: 1px solid rgba(92,122,78,0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    color: var(--moss);
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .auth-terms {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
  }
  .auth-terms a { color: var(--acorn); text-decoration: underline; cursor: pointer; }

  .auth-coming-soon {
    text-align: center;
    padding: 1.5rem 0;
  }
  .auth-coming-badge {
    display: inline-block;
    background: rgba(232,160,32,0.12);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
  }

  @media (max-width: 480px) {
    .auth-modal { padding: 2rem 1.5rem; border-radius: 24px; }
    .auth-modal-title { font-size: 1.4rem; }
  }

  /* ── Modal registro celebración: bottom sheet en móvil ── */
  @media (max-width: 768px) {
    /* El overlay se alinea abajo → el modal sube desde la parte inferior */
    #modal-register-celebration {
      align-items: flex-end !important;
      padding: 0 !important;
    }
    #modal-register-celebration .auth-modal-fixed {
      max-width: 100% !important;
      width: 100% !important;
      border-radius: 24px 24px 0 0 !important;
      /* Habilitar scroll en vez de cortar el contenido */
      overflow-y: auto !important;
      overflow-x: hidden !important;
      max-height: 92dvh !important;
      max-height: 92vh !important; /* fallback */
      padding: 1.5rem 1.25rem !important;
      padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)) !important;
      box-shadow: 0 -12px 48px rgba(61,43,31,0.2) !important;
    }
    /* Ocultar título y subtítulo en móvil: Clerk ya tiene su propio header */
    #modal-register-celebration .auth-modal-title,
    #modal-register-celebration .auth-modal-sub {
      display: none;
    }
    /* El emoji de ardilla queda compacto arriba */
    #modal-register-celebration .auth-modal-nuti {
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
    }
    /* El clerk-mount-wrap no tiene altura mínima fija en móvil */
    #modal-register-celebration .clerk-mount-wrap {
      min-height: auto !important;
      overflow: visible !important;
      margin: 0 !important;
    }
    /* Animación: el sheet sube desde abajo */
    #modal-register-celebration.open .auth-modal-fixed {
      animation: sheetSlideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
    }
    @keyframes sheetSlideUp {
      from { transform: translateY(100%); opacity: 0.6; }
      to   { transform: translateY(0);   opacity: 1; }
    }
  }


  /* ===== AUTH PAGES (/login, /registro) ===== */
  .auth-page {
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    position: relative;
    overflow: hidden;
    background: var(--cream);
  }

  /* auth blobs now handled in new CSS above */

  .auth-page-card {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
    width: 100%;
    min-height: 520px;
    max-height: 90vh;
    background: transparent;
    overflow: visible;
    animation: obCardIn 0.45s cubic-bezier(0.34,1.2,0.64,1) both;
  }

  /* ── Brand panel (left) — único con borde/caja ── */
  .auth-brand-panel {
    background: linear-gradient(160deg, var(--bark) 0%, #2A1A10 100%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(196,98,45,0.15);
    box-shadow: 0 24px 80px rgba(61,43,31,0.2);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
  }

  .auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(196,98,45,0.15);
    pointer-events: none;
  }

  .auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .auth-brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--cream);
    letter-spacing: -0.02em;
  }
  .auth-brand-name span { color: var(--gold); }

  .auth-brand-headline {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--cream);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 2rem;
  }
  .auth-brand-headline em { color: var(--gold); font-weight: 300; font-style: italic; }

  .auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .auth-brand-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(247,240,230,0.75);
    line-height: 1.4;
  }
  .auth-brand-feat span {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .auth-brand-quote {
    margin-top: auto;
    font-size: 0.78rem;
    color: rgba(247,240,230,0.4);
    font-style: italic;
    line-height: 1.6;
    border-top: 1px solid rgba(247,240,230,0.1);
    padding-top: 1.25rem;
  }

  /* ── Form panel (right) — sin fondo blanco ── */
  .auth-form-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    background: transparent;
  }

  .auth-back-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    transition: color 0.2s;
    align-self: flex-start;
  }
  .auth-back-btn:hover { color: var(--bark); }

  .auth-form-header { margin-bottom: 1.75rem; }

  .auth-form-nuti {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    animation: squirrelBob 3s ease-in-out infinite;
  }

  .auth-form-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    color: var(--bark);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
    line-height: 1.2;
  }

  .auth-form-sub {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .auth-coming-notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: rgba(61,43,31,0.05);
    border: 1.5px solid rgba(61,43,31,0.1);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
  }

  .auth-coming-pro {
    background: rgba(92,122,78,0.06);
    border-color: rgba(92,122,78,0.2);
  }

  .auth-coming-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

  .auth-coming-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 0.3rem;
  }

  .auth-coming-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .auth-coming-desc strong { color: var(--bark); }

  .auth-form-fields { margin-bottom: 1.25rem; }

  /* Reuse .auth-field from modals */

  .auth-toggle-pass {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-top: 0.6rem;
  }
  .auth-toggle-pass:hover { opacity: 1; }

  .auth-forgot {
    text-align: right;
    margin-top: 0.5rem;
  }
  .auth-forgot button {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--acorn);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .auth-submit-btn {
    width: 100%;
    background: var(--acorn);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(196,98,45,0.28);
    margin-bottom: 1rem;
  }
  .auth-submit-btn:hover { background: var(--bark); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(61,43,31,0.2); }
  .auth-submit-register { background: var(--moss); box-shadow: 0 8px 24px rgba(92,122,78,0.28); }
  .auth-submit-register:hover { background: #4A6640; }
  .auth-submit-arrow { font-size: 1.1rem; }

  .auth-divider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .auth-divider-row::before, .auth-divider-row::after {
    content: ''; flex: 1; height: 1px; background: var(--soft);
  }

  .auth-alt-btn {
    width: 100%;
    background: var(--soft);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bark);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
  }
  .auth-alt-btn:hover { border-color: rgba(61,43,31,0.2); background: var(--cream); }

  .auth-terms-row {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.6;
  }
  .auth-terms-row button {
    background: none; border: none;
    color: var(--acorn); font-size: 0.72rem;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    text-decoration: underline; text-underline-offset: 2px; padding: 0;
  }

  /* Clerk mount container — alineado y contenido */
  .clerk-mount-wrap {
    flex: 1 1 auto;
    min-height: 260px;
    max-width: 100%;
    margin: 0.5rem 0 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .clerk-mount-wrap > div,
  .clerk-mount-wrap [class*="cl-"] {
    max-width: 100% !important;
  }
  /* Clerk components — tema ArdillaLibre */
  #screen-login .clerk-mount-wrap .cl-formButtonPrimary,
  #screen-registro .clerk-mount-wrap .cl-formButtonPrimary,
  #modal-register-celebration .clerk-mount-wrap .cl-formButtonPrimary {
    background: var(--acorn) !important;
    color: white !important;
    border-radius: 14px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(196,98,45,0.25) !important;
  }
  #screen-login .clerk-mount-wrap .cl-formButtonPrimary:hover,
  #screen-registro .clerk-mount-wrap .cl-formButtonPrimary:hover,
  #modal-register-celebration .clerk-mount-wrap .cl-formButtonPrimary:hover {
    background: var(--bark) !important;
  }
  #screen-login .clerk-mount-wrap .cl-formFieldInput,
  #screen-registro .clerk-mount-wrap .cl-formFieldInput,
  #modal-register-celebration .clerk-mount-wrap .cl-formFieldInput {
    border-radius: 12px !important;
    border-color: rgba(61,43,31,0.15) !important;
  }
  #screen-login .clerk-mount-wrap .cl-card,
  #screen-registro .clerk-mount-wrap .cl-card,
  #modal-register-celebration .clerk-mount-wrap .cl-card {
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Quitar fondo blanco de contenedores Clerk */
  #screen-login .clerk-mount-wrap .cl-scrollBox,
  #screen-registro .clerk-mount-wrap .cl-scrollBox,
  #screen-login .clerk-mount-wrap .cl-cardBox,
  #screen-registro .clerk-mount-wrap .cl-cardBox,
  #modal-register-celebration .clerk-mount-wrap .cl-scrollBox,
  #modal-register-celebration .clerk-mount-wrap .cl-cardBox {
    background: transparent !important;
  }
  #screen-login .clerk-mount-wrap .cl-headerTitle,
  #screen-registro .clerk-mount-wrap .cl-headerTitle {
    font-family: 'Fraunces', serif !important;
    color: var(--bark) !important;
  }
  #screen-login .clerk-mount-wrap .cl-headerSubtitle,
  #screen-registro .clerk-mount-wrap .cl-headerSubtitle {
    color: var(--muted) !important;
  }
  #screen-login .clerk-mount-wrap .cl-formFieldLabel,
  #screen-registro .clerk-mount-wrap .cl-formFieldLabel {
    color: var(--bark) !important;
  }
  #screen-login .clerk-mount-wrap .cl-footerActionLink,
  #screen-registro .clerk-mount-wrap .cl-footerActionLink {
    color: var(--acorn) !important;
  }
  #screen-login .clerk-mount-wrap .cl-socialButtonsBlockButton,
  #screen-registro .clerk-mount-wrap .cl-socialButtonsBlockButton {
    border-radius: 12px !important;
    border-color: rgba(61,43,31,0.15) !important;
  }
  /* Clerk root — evitar desbordes */
  #screen-login .clerk-mount-wrap [class*="cl-root"],
  #screen-registro .clerk-mount-wrap [class*="cl-root"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  #screen-login .clerk-mount-wrap form,
  #screen-registro .clerk-mount-wrap form {
    width: 100% !important;
  }

  .auth-switch-row {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.75rem;
  }
  .auth-switch-row button {
    background: none; border: none;
    color: var(--acorn); font-weight: 600;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem; padding: 0;
    text-decoration: underline; text-underline-offset: 2px;
  }

  .auth-success-state {
    text-align: center;
    padding: 1rem 0;
    animation: fadeUp 0.4s ease both;
  }
  .auth-success-icon { font-size: 3rem; margin-bottom: 0.75rem; }
  .auth-success-title {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }
  .auth-success-desc {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* Hide header/footer on auth pages */
  #screen-login.active ~ header,
  #screen-registro.active ~ header { display: none; }
  #screen-login.active ~ footer,
  #screen-registro.active ~ footer { display: none; }
  #screen-login.active ~ .chat-bubble,
  #screen-registro.active ~ .chat-bubble { display: none !important; }

  /* Mobile auth */
  @media (max-width: 768px) {
    .auth-page { padding: 0; align-items: flex-start; height: 100vh; overflow: hidden; }
    .auth-page-card {
      grid-template-columns: 1fr;
      border-radius: 0;
      height: 100vh;
      max-height: 100vh;
      min-height: 100vh;
      box-shadow: none;
    }
    .auth-brand-panel { display: none; }
    .auth-form-panel {
      padding: 1.5rem 1.25rem 2rem;
      height: 100%;
      max-height: 100vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
    }
    .auth-form-header { margin-bottom: 1rem; }
    .auth-form-nuti { font-size: 1.8rem; }
    .auth-form-title { font-size: 1.3rem; }
    .clerk-mount-wrap { min-height: 220px; margin: 0.25rem 0 0.75rem; }
    .auth-back-btn { margin-bottom: 1rem; }
  }

  @media (max-width: 480px) {
    .auth-form-panel { padding: 1.5rem 1.25rem 3rem; }
  }


  /* ===== ONBOARDING FULL-SCREEN BACKGROUND ===== */
  #screen-onboarding {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    min-height: 100vh;
    min-height: 100dvh;
  }

  .ob-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .ob-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: blobFloat 8s ease-in-out infinite;
  }

  .ob-bg-1 {
    width: 500px; height: 500px;
    background: var(--acorn);
    top: -120px; right: -120px;
    opacity: 0.13;
    animation-delay: 0s;
  }

  .ob-bg-2 {
    width: 380px; height: 380px;
    background: var(--moss);
    bottom: -100px; left: -100px;
    opacity: 0.11;
    animation-delay: -3s;
  }

  .ob-bg-3 {
    width: 280px; height: 280px;
    background: var(--gold);
    top: 40%; left: 35%;
    opacity: 0.07;
    animation-delay: -5s;
  }

  @keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -25px) scale(1.05); }
    66%       { transform: translate(-15px, 15px) scale(0.97); }
  }

  /* ob-shell sits above the bg layer */
  .ob-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* ob-card gets glass effect */
  .ob-card {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.6);
  }

  /* ===== AUTH PAGES — animated blur blobs ===== */
  .auth-page-bg {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .auth-page-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 10s ease-in-out infinite;
  }

  /* Override blob opacities and add animation delays */
  .auth-blob-1 {
    width: 550px; height: 550px;
    background: var(--acorn);
    top: -180px; right: -150px;
    opacity: 0.13;
    animation-delay: 0s;
  }
  .auth-blob-2 {
    width: 400px; height: 400px;
    background: var(--moss);
    bottom: -120px; left: -120px;
    opacity: 0.11;
    animation-delay: -4s;
  }
  .auth-blob-3 {
    width: 300px; height: 300px;
    background: var(--gold);
    top: 45%; left: 38%;
    opacity: 0.07;
    animation-delay: -7s;
  }

  /* auth login/registro — solo brand panel con borde, form sin fondo */
  #screen-login .auth-form-panel,
  #screen-registro .auth-form-panel {
    background: transparent !important;
    backdrop-filter: none !important;
  }
  #screen-login .auth-page-card,
  #screen-registro .auth-page-card {
    background: transparent !important;
    box-shadow: none !important;
  }

  @media (max-width: 768px) {
    #screen-login .auth-brand-panel,
    #screen-registro .auth-brand-panel { border-radius: 0; }
    #screen-login .auth-form-panel,
    #screen-registro .auth-form-panel { background: transparent !important; }
  }

  /* ===== HIDE FOOTER ON APP SCREENS ===== */
  #screen-onboarding.active ~ footer,
  #screen-debts.active ~ footer,
  #screen-results.active ~ footer,
  #screen-celebration.active ~ footer { display: none; }

  /* Hide chatbot on app screens too */
  #screen-onboarding.active ~ .chat-bubble,
  #screen-debts.active ~ .chat-bubble,
  #screen-results.active ~ .chat-bubble,
  #screen-celebration.active ~ .chat-bubble { display: none !important; }

  /* ===== DASHBOARD HEADER HIDE GLOBAL HEADER ===== */
  .waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .waitlist-input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid rgba(196,98,45,0.2);
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: var(--cream);
    color: var(--bark);
    outline: none;
    transition: border-color 0.2s;
  }

  .waitlist-input:focus { border-color: var(--acorn); }
  .waitlist-input::placeholder { color: var(--muted); }

  .waitlist-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: rgba(92,122,78,0.08);
    border-radius: 16px;
    color: var(--moss);
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* ===== CONFETTI ===== */
  @keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
  }

  .confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
  }

  /* Tooltip */
  .tooltip {
    position: relative;
    cursor: help;
  }
  .tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bark);
    color: var(--cream);
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .tooltip:hover::after { opacity: 1; }
  .chat-bubble {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom));
    right: calc(2rem + env(safe-area-inset-right));
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }
  .chat-toggle {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--bark);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 28px rgba(61,43,31,0.3);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
    position: relative; flex-shrink: 0;
  }
  .chat-toggle:hover { transform: scale(1.1); background: var(--acorn); }
  .chat-toggle.open { background: var(--acorn); }
  .chat-notif {
    position: absolute; top: 2px; right: 2px;
    width: 13px; height: 13px;
    background: #4CAF50; border-radius: 50%;
    border: 2px solid var(--cream);
    animation: notifPulse 1.6s ease-in-out infinite;
    display: none;
  }
  .chat-notif.visible { display: block; }
  @keyframes notifPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.4; transform:scale(0.7); }
  }
  .chat-window {
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 60px rgba(61,43,31,0.2), 0 0 0 1px rgba(196,98,45,0.1);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(10px);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  }
  .chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
  .chat-window:not(.open) {
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .chat-head {
    background: var(--bark);
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .chat-head-avatar {
    width: 38px; height: 38px;
    background: rgba(247,240,230,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
  }
  .chat-head-info { flex: 1; }
  .chat-head-name {
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.95rem;
    color: var(--cream); letter-spacing: -0.01em;
  }
  .chat-head-status {
    font-size: 0.7rem; color: rgba(247,240,230,0.5);
    display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem;
  }
  .chat-head-dot { width:6px; height:6px; background:#4CAF50; border-radius:50%; }
  .chat-close-btn {
    background: rgba(247,240,230,0.1); border: none;
    color: rgba(247,240,230,0.6); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
  }
  .chat-close-btn:hover { background: rgba(247,240,230,0.2); color: white; }
  .chat-messages {
    height: 280px; overflow-y: auto;
    padding: 1.25rem 1rem;
    background: var(--cream);
    display: flex; flex-direction: column; gap: 0.85rem;
    scroll-behavior: smooth;
  }
  .chat-messages::-webkit-scrollbar { width: 4px; }
  .chat-messages::-webkit-scrollbar-thumb { background: var(--soft); border-radius: 4px; }
  .chat-msg {
    display: flex; gap: 0.5rem; align-items: flex-end;
    animation: msgIn 0.3s cubic-bezier(0.34,1.2,0.64,1) both;
  }
  @keyframes msgIn {
    from { opacity:0; transform:translateY(10px) scale(0.95); }
    to { opacity:1; transform:translateY(0) scale(1); }
  }
  .chat-msg-avatar {
    width:26px; height:26px; background: var(--bark);
    border-radius:50%; font-size:0.8rem;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; margin-bottom:2px;
  }
  .chat-msg-bubble {
    background: white; border-radius: 14px 14px 14px 4px;
    padding: 0.65rem 0.9rem; font-size: 0.82rem; color: var(--bark);
    line-height: 1.55; max-width: 220px;
    box-shadow: 0 1px 6px rgba(61,43,31,0.07);
    font-family: 'DM Sans', sans-serif; font-weight: 300;
  }
  .chat-msg-bubble strong { font-weight: 500; color: var(--bark); }
  .chat-msg.user { flex-direction: row-reverse; }
  .chat-msg.user .chat-msg-bubble {
    background: var(--bark); color: var(--cream);
    border-radius: 14px 14px 4px 14px;
  }
  .chat-typing .chat-msg-bubble {
    display:flex; gap:4px; align-items:center; padding:0.75rem 1rem;
  }
  .typing-dot {
    width:6px; height:6px; background: var(--muted); border-radius:50%;
    animation: typingBounce 1.2s ease-in-out infinite;
  }
  .typing-dot:nth-child(2) { animation-delay:0.2s; }
  .typing-dot:nth-child(3) { animation-delay:0.4s; }
  @keyframes typingBounce {
    0%,80%,100% { transform:translateY(0); opacity:0.4; }
    40% { transform:translateY(-5px); opacity:1; }
  }
  .chat-options {
    padding: 0.75rem 1rem 1rem;
    background: white; border-top: 1px solid var(--soft);
    display: flex; flex-direction: column; gap: 0.5rem;
  }
  .chat-opt-btn {
    width:100%; padding:0.65rem 1rem; border-radius:12px;
    border: 1.5px solid var(--soft); background: var(--cream);
    color: var(--bark); font-family: 'DM Sans', sans-serif;
    font-size:0.8rem; font-weight:400; cursor:pointer;
    text-align:left; transition:all 0.2s; line-height:1.4;
  }
  .chat-opt-btn:hover { border-color:var(--acorn); background:rgba(196,98,45,0.04); color:var(--acorn); }
  .chat-opt-btn.primary {
    background:var(--bark); color:var(--cream); border-color:var(--bark);
    font-weight:500; display:flex; align-items:center; gap:0.5rem;
  }
  .chat-opt-btn.primary:hover { background:var(--acorn); border-color:var(--acorn); }
  .chat-opt-btn.gold {
    background:var(--gold); color:var(--bark); border-color:var(--gold);
    font-weight:600; font-family:'Fraunces',serif; font-size:0.88rem;
    letter-spacing:-0.01em; text-align:center;
  }
  .chat-opt-btn.gold:hover { background:#F0B030; border-color:#F0B030; }

  /* Chat móvil: no bloquear toques cuando está cerrado (solo el toggle recibe clicks) */
  @media (max-width: 768px) {
    .chat-bubble:not(.open) { pointer-events: none; }
    .chat-bubble:not(.open) .chat-toggle { pointer-events: auto; }
  }

  /* Chat móvil: respetar bordes y safe areas, no salirse de pantalla */
  @media (max-width: 768px) {
    .chat-bubble {
      left: 0;
      right: 0;
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
      max-width: 100%;
    }
    .chat-window {
      width: 100% !important;
      max-width: 360px;
      margin-left: auto;
      margin-right: 0;
      box-sizing: border-box;
    }
    .chat-msg-bubble {
      max-width: 85%;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    .chat-head, .chat-messages, .chat-options {
      padding-left: 1rem;
      padding-right: 1rem;
    }
    .chat-opt-btn {
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
  }
  @media (max-width: 480px) {
    .chat-bubble {
      padding-left: calc(0.75rem + env(safe-area-inset-left));
      padding-right: calc(0.75rem + env(safe-area-inset-right));
    }
    .chat-window {
      max-width: 100%;
    }
  }

/* ===================================================================
   FREE vs PRO — TAB GATING SYSTEM
   =================================================================== */

/* El tab activo necesita position:relative para el overlay absoluto */
.dash-tab.active { position: relative; }

/* ---- Nav lock badge (visible solo para Free en tabs Pro) ---- */
.nav-lock-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  background: linear-gradient(135deg, #C4622D 0%, #E8956D 100%);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.48rem;
  border-radius: 50px;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ---- Tab lock overlay ---- */
.tab-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(247, 240, 230, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Blurred "ghost" preview behind the lock card */
.tab-lock-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0.28;
}
.tab-lock-preview-bar {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #C4622D 0%, #5C7A4E 55%, #E8D9C0 100%);
  filter: blur(2px);
}
.tab-lock-preview-chart {
  flex: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(92,122,78,0.45) 0%, rgba(196,98,45,0.35) 100%);
  filter: blur(4px);
}
.tab-lock-preview-row {
  height: 40px;
  border-radius: 8px;
  background: rgba(61,43,31,0.10);
  filter: blur(2px);
}

/* The actual lock card */
.tab-lock-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1.5px solid rgba(61,43,31,0.09);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 28px 70px rgba(61,43,31,0.18);
  animation: lockCardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lockCardIn {
  from { transform: scale(0.88) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);     opacity: 1; }
}
.tab-lock-emoji { font-size: 3rem; margin-bottom: 0.4rem; line-height: 1; display: block; }
.tab-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #C4622D, #E8956D);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.tab-lock-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bark);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.tab-lock-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.tab-lock-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  text-align: left;
  width: 100%;
}
.tab-lock-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--bark);
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(61,43,31,0.06);
}
.tab-lock-features li:last-child { border-bottom: none; }
.tab-lock-check { color: var(--moss); font-weight: 700; flex-shrink: 0; font-size: 0.95rem; margin-top: 0.05rem; }
.tab-lock-cta {
  width: 100%;
  background: linear-gradient(135deg, #C4622D 0%, #A03010 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(196,98,45,0.38);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.tab-lock-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(196,98,45,0.5); }
.tab-lock-cta:active { transform: translateY(0); }
.tab-lock-note { font-size: 0.76rem; color: var(--muted); margin: 0; }
.tab-lock-signin {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tab-lock-signin:hover { color: var(--bark); }

@media (max-width: 480px) {
  .tab-lock-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .tab-lock-title { font-size: 1.3rem; }
  .tab-lock-features li { font-size: 0.83rem; }
}

/* ===================================================================
   GASTOS IMPREVISTOS (Pro only)
   =================================================================== */
.gi-section { margin-top: 1.75rem; }
.gi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gi-month-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.gi-total-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #A03010;
  background: rgba(196,98,45,0.08);
  padding: 0.22rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(196,98,45,0.18);
}
.gi-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.gi-item {
  display: grid;
  grid-template-columns: 1fr 100px 32px;
  gap: 0.5rem;
  align-items: center;
}
.gi-input {
  border: 1.5px solid rgba(61,43,31,0.14);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-size: 0.87rem;
  font-family: inherit;
  color: var(--bark);
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
  box-sizing: border-box;
}
.gi-input:focus { border-color: #C4622D; }
.gi-input-amount { text-align: right; }
.gi-remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
  width: 32px;
  text-align: center;
}
.gi-remove-btn:hover { opacity: 1; color: var(--acorn); }
.gi-add-btn {
  background: none;
  border: 1.5px dashed rgba(61,43,31,0.22);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.gi-add-btn:hover { border-color: #C4622D; color: #C4622D; background: rgba(196,98,45,0.04); }
.gi-impact-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(61,43,31,0.04);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  display: none;
}
.gi-impact-note.visible { display: block; }

/* ===================================================================
   TABLA FINANCIERA INTERACTIVA (EXCEL)
   =================================================================== */

.pf-excel-section {
  margin-top: 1.75rem;
}

/* ---- Instrucciones ---- */
.pf-excel-instructions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #F7F0E6;
  border: 1.5px solid #E8D9C0;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #5A4030;
  line-height: 1.5;
}
.pf-excel-hint-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.pf-excel-hint-text { flex: 1; }
.pf-excel-manual-badge {
  display: inline-block;
  color: #C4622D;
  font-size: 0.72rem;
  vertical-align: middle;
}
.pf-excel-reset-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid #C4622D;
  color: #C4622D;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  align-self: center;
}
.pf-excel-reset-btn:hover { background: #C4622D; color: #fff; }

/* ---- Scroll wrapper ---- */
.pf-excel-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1.5px solid rgba(61,43,31,0.11);
  background: #fff;
  box-shadow: 0 2px 18px rgba(61,43,31,0.07);
}

/* ---- Table ---- */
.pf-excel-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
}

/* ---- Header ---- */
.pf-excel-table thead tr { background: #3D2B1F; }
.pf-excel-th-mes,
.pf-excel-th {
  padding: 0.65rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #F7F0E6;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  user-select: none;
}
.pf-excel-th-mes { text-align: left; min-width: 68px; }

/* ---- Column colours — header ---- */
.pf-excel-table thead .pf-col-income   { background: rgba(92,122,78,0.5); }
.pf-excel-table thead .pf-col-expenses { background: rgba(196,98,45,0.5); }
.pf-excel-table thead .pf-col-debt     { background: rgba(180,100,40,0.42); }
.pf-excel-table thead .pf-col-payment  { background: rgba(180,100,40,0.32); }
.pf-excel-table thead .pf-col-savings  { background: rgba(92,122,78,0.4); }
.pf-excel-table thead .pf-col-balance  { background: rgba(74,122,160,0.42); }

/* ---- Body rows ---- */
.pf-excel-row td {
  border-bottom: 1px solid rgba(61,43,31,0.07);
  border-right: 1px solid rgba(61,43,31,0.05);
  padding: 0;
  vertical-align: middle;
}
.pf-excel-row:last-child td { border-bottom: none; }
.pf-excel-td-mes {
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5A4030;
  white-space: nowrap;
  min-width: 68px;
  height: 40px;
}
.pf-excel-row:hover td { background: rgba(247,240,230,0.55) !important; }
.pf-excel-row-free .pf-excel-td-mes { color: #3A6B2A; }

/* ---- Column colour tints — body ---- */
.pf-excel-row .pf-col-income   { background: rgba(92,122,78,0.055); }
.pf-excel-row .pf-col-expenses { background: rgba(196,98,45,0.055); }
.pf-excel-row .pf-col-debt     { background: rgba(196,98,45,0.035); }
.pf-excel-row .pf-col-payment  { background: rgba(196,98,45,0.025); }
.pf-excel-row .pf-col-savings  { background: rgba(92,122,78,0.055); }
.pf-excel-row .pf-col-balance  { background: rgba(74,122,160,0.045); }

/* ---- Cell ---- */
.pf-excel-cell {
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
}
.pf-excel-cell-focus { outline: 2px solid #5C7A4E; outline-offset: -2px; border-radius: 2px; }
.pf-excel-cell-manual { background: rgba(196,98,45,0.08) !important; }

/* ---- Input ---- */
.pf-excel-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'DM Mono', 'DM Sans', monospace;
  font-size: 0.87rem;
  color: #3D2B1F;
  text-align: right;
  padding: 0 1.7rem 0 0.4rem;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pf-excel-input::-webkit-outer-spin-button,
.pf-excel-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-excel-input:focus { background: rgba(92,122,78,0.07); }

/* ---- Manual-override dot ---- */
.pf-excel-dot {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: #C4622D;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: transform 0.15s, opacity 0.15s;
}
.pf-excel-dot:hover { opacity: 1; transform: translateY(-50%) scale(1.5); }

/* ---- Balance (read-only) td ---- */
.pf-excel-balance-td {
  text-align: right;
  padding: 0 0.8rem;
  font-weight: 700;
  font-size: 0.87rem;
  color: #1D4A70;
  white-space: nowrap;
}

/* ---- Footer totals ---- */
.pf-excel-totals {
  background: #F2EAE0;
  border-top: 2px solid rgba(61,43,31,0.13);
}
.pf-excel-totals td {
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: right;
  border-right: 1px solid rgba(61,43,31,0.08);
  color: #3D2B1F;
}
.pf-excel-totals .pf-excel-td-mes { text-align: left; color: #3D2B1F; }
.pf-excel-totals .pf-col-income   { color: #2E6020; }
.pf-excel-totals .pf-col-expenses { color: #A03010; }
.pf-excel-totals .pf-col-payment  { color: #8A4010; }
.pf-excel-totals .pf-col-savings  { color: #2E6020; }
.pf-excel-totals .pf-col-balance  { color: #1D4A70; }

/* ---- Excel chart ---- */
.pf-excel-chart-card { margin-top: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .pf-excel-instructions { flex-wrap: wrap; }
  .pf-excel-reset-btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .pf-excel-table { font-size: 0.8rem; min-width: 600px; }
  .pf-excel-input { font-size: 0.8rem; }
  .pf-excel-th, .pf-excel-th-mes { font-size: 0.7rem; padding: 0.45rem 0.4rem; }
  .pf-excel-td-mes { font-size: 0.78rem; }
}
/* ===== FIN TABLA EXCEL ===== */

/* ======================================================
   DASHBOARD MÓVIL — HAMBURGUESA + DRAWER LATERAL
   (Solo se activa en max-width: 768px)
   No afecta al layout de escritorio en absoluto.
   ====================================================== */

/* ── Botón hamburguesa: oculto en escritorio ── */
.dash-ham-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: none;
  border: 1.5px solid rgba(61,43,31,0.18);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: rgba(196,98,45,0.15);
  touch-action: manipulation;
}
.dash-ham-btn:hover { background: var(--soft); border-color: rgba(196,98,45,0.3); }
.dash-ham-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 14px;
  pointer-events: none;
}
.dash-ham-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.dash-ham-btn.open .dash-ham-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dash-ham-btn.open .dash-ham-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.dash-ham-btn.open .dash-ham-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay oscuro ── */
.dash-mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,0.38);
  z-index: 300;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: dashOverlayIn 0.25s ease both;
}
.dash-mob-overlay.open { display: block; }
@keyframes dashOverlayIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Drawer lateral (derecha → izquierda) ── */
.dash-mob-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #fff;
  z-index: 301;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -10px 0 48px rgba(61,43,31,0.18);
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  scrollbar-width: none;
}
.dash-mob-drawer::-webkit-scrollbar { display: none; }
.dash-mob-drawer.open { transform: translateX(0); }

/* Header del drawer */
.dash-mob-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--soft);
  flex-shrink: 0;
}
.dash-mob-drawer-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bark);
  letter-spacing: -0.02em;
}
.dash-mob-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--soft);
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--bark);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.dash-mob-drawer-close:hover { background: rgba(196,98,45,0.12); }

/* Secciones internas del drawer */
.dash-mob-drawer-section {
  padding: 0.6rem 0.85rem;
  flex-shrink: 0;
}
.dash-mob-drawer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.4rem 0.3rem;
}
.dash-mob-drawer-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.75rem;
  background: none;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 450;
  color: var(--bark);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
  -webkit-tap-highlight-color: rgba(196,98,45,0.12);
  touch-action: manipulation;
}
.dash-mob-drawer-btn:hover,
.dash-mob-drawer-btn:active { background: var(--soft); }
.dash-mob-drawer-btn.mob-active {
  background: rgba(196,98,45,0.09);
  color: var(--acorn);
  font-weight: 600;
}
.dmdb-icon { font-size: 1.15rem; flex-shrink: 0; line-height: 1; }
.dmdb-lock {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(196,98,45,0.1);
  color: var(--acorn);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}
.dash-mob-drawer-divider {
  height: 1px;
  background: var(--soft);
  margin: 0.25rem 0.85rem;
  flex-shrink: 0;
}
.dash-mob-pro-btn {
  background: linear-gradient(135deg, rgba(232,160,32,0.1), rgba(196,98,45,0.07));
  border: 1.5px solid rgba(232,160,32,0.22);
  color: #B07A00;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.dash-mob-pro-btn:hover { background: linear-gradient(135deg, rgba(232,160,32,0.18), rgba(196,98,45,0.12)); }
.dash-mob-logout-btn { color: #b94040; }
.dash-mob-logout-btn:hover { background: rgba(185,64,64,0.07); }

/* ── Mostrar hamburguesa + ajustes móvil ── */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .dash-ham-btn { display: flex; }

  /* Ocultar logout del header (va en el drawer) */
  .dash-logout-desktop { display: none !important; }

  /* En la barra horizontal del sidebar, ocultar elementos secundarios */
  .dash-nav-pro,
  .dash-nav-gestionar,
  #nav-ajustes { display: none !important; }

  /* Ocultar badges "🔒 PRO" de la barra horizontal (se ven en el drawer) */
  .nav-lock-badge { display: none !important; }

  /* El bottom bar de acciones no es necesario con el drawer */
  .dash-mobile-actions { display: none !important; }
}

/* ── Escritorio: ocultar todo lo del drawer ── */
@media (min-width: 769px) {
  .dash-ham-btn { display: none !important; }
  .dash-mob-overlay { display: none !important; }
  .dash-mob-drawer { display: none !important; }
}
/* ===== FIN DASHBOARD MÓVIL HAMBURGUESA ===== */

/* ── Upgrade inline: ocultar contenido real del tab cuando hay bloque de upgrade ── */
.dash-tab.has-inline-upgrade > :not(.tab-inline-upgrade) {
  display: none !important;
}

/* ── Plan de Metas: grid de 3 columnas → 1 en móvil ── */
@media (max-width: 600px) {
  #tab-inversion .chart-card [style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  #tab-inversion .chart-card [style*="repeat(3,1fr)"] > div {
    border-radius: 12px;
  }
}
