:root{
      --bg:#FFF9F3;
      --card:#fff;
      --soft:#FFECE0;
      --accent:#FF8A65;
      --muted:#8c6b5d;
      --success:#66BB6A;
      --warning:#FFB74D;
      --danger:#EF5350;
      --glass: rgba(255,255,255,0.6);
      --radius:16px;
      font-family: 'Quicksand', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      color: #4b3a36;
    }


    .wrap{
      width:100%;
      max-width:920px;
      display:grid;
      grid-template-columns: 360px 1fr;
      gap:28px;
      align-items:start;
      margin: 0 auto;
      margin-top: 45px;
    }
    .wrap-articulos{
      width:100%;
      max-width:920px;
      display:grid;
      gap:28px;
      align-items:start;
      margin: 0 auto;
      margin-top: 45px;
    }

    /* Card */
    .card{
      background:var(--card);
      border-radius:var(--radius);
      box-shadow: 0 8px 28px rgba(71,48,36,0.08);
      padding:20px;
    }

    /* Left panel - intro */
    .intro{
      padding:22px;
      display:flex;
      flex-direction:column;
      gap:18px;
      align-items:flex-start;
    }
    .brand{
      display:flex;
      gap:12px;
      align-items:center;
    }
    .logo{
      width:64px;height:64px;
      background:linear-gradient(135deg,var(--soft),#FFF0E6);
      border-radius:14px;
      display:flex;
      align-items:center;
      justify-content:center;
      box-shadow: 0 6px 18px rgba(255,138,101,0.12);
    }
    .logo svg{width:36px;height:36px; fill:var(--accent)}
    h1{margin:0;font-size:20px;font-weight:700}
    p.lead{margin:0;color:var(--muted);font-size:14px;line-height:1.4}
    .tips{display:flex;gap:8px;flex-wrap:wrap}
    .chip{
      background: #FFF6F2;
      border:1px solid rgba(255,138,101,0.08);
      color:var(--accent);
      padding:8px 12px;
      border-radius:999px;
      font-weight:600;
      font-size:13px;
    }

    /* Right panel - form + results */
    form{display:flex;flex-direction:column;gap:14px}
    .group{display:flex;gap:12px;align-items:center}
    .field{
      background:var(--glass);
      border-radius:12px;
      padding:10px;
      display:flex;
      gap:8px;
      align-items:center;
      border:1px solid rgba(75,58,54,0.06);
    }
    label{
      font-size:13px;
      color:var(--muted);
      width:110px;
      min-width:110px;
    }
    .input-wrap{flex:1;display:flex;gap:8px;align-items:center}
    input[type="number"], select{
      -moz-appearance: textfield;
      appearance:auto;
      border: none;
      outline:none;
      width:100%;
      font-size:16px;
      padding:8px 6px;
      border-radius:8px;
      background:transparent;
      color:var(--4b3a36);
    }
    select{padding:8px;background:transparent}
    

    .row{display:flex;gap:12px}
    .btn{
      background:var(--accent);
      color:#fff;
      border:none;
      padding:12px 18px;
      border-radius:12px;
      font-weight:700;
      cursor:pointer;
      box-shadow: 0 6px 18px rgba(255,138,101,0.18);
    }
    .btn.secondary{
      background:transparent;
      color:var(--accent);
      border:1px solid rgba(255,138,101,0.14);
      box-shadow:none;
    }

    .result{
      margin-top:6px;
      border-radius:12px;
      padding:14px;
      display:flex;
      gap:12px;
      align-items:center;
      justify-content:space-between;
    }
    .bignum{font-size:28px;font-weight:700}
    .badge{padding:8px 12px;border-radius:999px;font-weight:700}

    /* category colors */
    .under{background:linear-gradient(90deg,#FFF7E6,#FFF1DA); color:var(--muted); border:1px solid rgba(255,183,77,0.08)}
    .normal{background:linear-gradient(90deg,#F1FFF4,#E9FFF6); color:var(--success); border:1px solid rgba(102,187,106,0.08)}
    .over{background:linear-gradient(90deg,#FFF9EE,#FFF4E6); color:var(--warning); border:1px solid rgba(255,183,77,0.08)}
    .obese{background:linear-gradient(90deg,#FFECEF,#FFF0F0); color:var(--danger); border:1px solid rgba(239,83,80,0.06)}

    /* responsive */
    @media (max-width:900px){
      .wrap{grid-template-columns:1fr; padding:12px}
      label{width:100%;min-width:unset}
      .group{flex-direction:column;align-items:flex-start}
    }

    /*articulo */
    .calc-article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 24px;
    margin-top: 32px;
    line-height: 1.6;
    color: #4b3a36;

    }

    .article-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
    }

    .article-lead {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 16px;
    }

    .article-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--accent);
    }

    .article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    }

    .article-list li {
    background: var(--soft);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    }

    .article-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 20px;
    padding-top: 12px;
    font-size: 13px;
    color: var(--muted);
    }

