:root{
  --bg:#0b1d3a;
  --bg2:#071225;
  --card:#0c1a33;
  --text:#0e1320;
  --muted:#5c667a;
  --line:#e6e9f0;

  /* Barbat-ish */
  --blue:#0b2c63;
  --gold:#c9a24a;

  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(201,162,74,.20), transparent 60%),
    radial-gradient(900px 600px at 92% 10%, rgba(11,44,99,.18), transparent 55%),
    linear-gradient(180deg, #f7f9ff, #ffffff 60%);
  color: var(--text);
}

/* container base */
.container{ max-width:1100px; margin:0 auto; padding:0 18px; }

/* ===== header (tu estructura) ===== */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{ display:flex; align-items:center; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand__logo{ height:42px; width:auto; display:block; }
.brand__text strong{ display:block; font-weight:900; letter-spacing:.4px; color: var(--blue); }
.brand__text span{ display:block; font-size:12px; color:#60708a; margin-top:2px; }

/* page */
.page{ padding: 26px 0 40px; }
.hero h1{
  margin:0 0 8px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing:.2px;
  color: var(--blue);
}
.lead{
  margin:0 0 18px;
  color:#4b5870;
  line-height:1.55;
  max-width: 78ch;
}

/* toolbar */
.toolbar{
  display:flex; gap:12px; align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap;
  padding: 14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 16px 40px rgba(11, 44, 99, .10);
}
.search{ min-width: min(560px, 100%); }
.search input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
  color: var(--text);
  outline:none;
}
.search input:focus{
  border-color: rgba(11,44,99,.35);
  box-shadow: 0 0 0 4px rgba(11,44,99,.10);
}
.search__meta{
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  margin-top:8px; font-size:12px; color:#60708a;
}
.toolbar__actions{ display:flex; gap:10px; }

/* buttons */
.btn{
  appearance:none;
  border:1px solid var(--line);
  background:#f7f9ff;
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:800;
}
.btn:hover{ background:#eef3ff; }
.btn--ghost{ background:transparent; }
.btn--primary{
  background: linear-gradient(135deg, rgba(201,162,74,.22), rgba(11,44,99,.10));
  border-color: rgba(201,162,74,.35);
}
.btn--primary:hover{
  background: linear-gradient(135deg, rgba(201,162,74,.28), rgba(11,44,99,.14));
}

/* chips */
.chips{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin: 14px 0 10px;
}
.chip{
  border:1px solid var(--line);
  background:#fff;
  color: var(--blue);
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:900;
  font-size: 12px;
}
.chip.is-active{
  border-color: rgba(201,162,74,.45);
  background: rgba(201,162,74,.12);
}

/* grid cards */
.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 0 18px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 10px 28px rgba(11, 44, 99, .08);
  overflow:hidden;
}
.card__summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 12px;
}
.card__summary::-webkit-details-marker{ display:none; }

.card__badge{
  font-weight:900;
  font-size:12px;
  padding: 5px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#f7f9ff;
  color:#55657e;
  white-space:nowrap;
}
.card__title{
  font-weight:900;
  letter-spacing:.2px;
  color:#0e1a33;
}
.card__chev{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(11,44,99,.65);
  border-bottom: 2px solid rgba(11,44,99,.65);
  transform: rotate(45deg);
  transition: transform .15s ease;
  margin-left: 8px;
}
details[open] .card__chev{ transform: rotate(225deg); }

.card__body{
  padding: 0 14px 14px;
  border-top:1px solid var(--line);
  background: #fbfcff;
}
.card__desc{
  margin: 12px 0 0;
  color:#4b5870;
  line-height:1.6;
}

/* note */
.note{ padding: 8px 0 24px; }
.note__box{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, rgba(201,162,74,.10), rgba(11,44,99,.06));
}
.note__box h2{ margin:0 0 6px; font-size:16px; color: var(--blue); }
.note__box p{ margin:0 0 12px; color:#4b5870; line-height:1.55; }

/* footer */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer__inner{
  padding: 16px 0;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  color:#60708a;
  font-size: 12px;
}
.footer__link{ text-decoration:none; color: var(--blue); }
.footer__link:hover{ text-decoration:underline; }
/* =========================
   AJUSTES MOBILE – ESPACIADO
   ========================= */
@media (max-width: 768px){

  /* contenedor general */
  .container{
    padding-left: 20px;
    padding-right: 20px;
  }

  /* header */
  .header__inner{
    padding-left: 20px;
    padding-right: 20px;
  }

  /* tarjetas */
  .card{
    border-radius: 16px;
  }

  .card__summary{
    padding: 16px;
  }

  .card__body{
    padding: 0 16px 16px;
  }

  /* toolbar / buscador */
  .toolbar{
    padding: 16px;
  }

  /* chips */
  .chips{
    padding-left: 4px;
    padding-right: 4px;
  }

  /* sección nota final */
  .note__box{
    padding: 18px;
  }
}
