:root{
  --bg-dark: #09111E;
  --text-dark: #0B1220;
  --muted: rgba(11,18,32,.55);
  --line: rgba(11,18,32,.12);

  --grad: linear-gradient(90deg, #0080EF 3.85%, #8027F7 80.77%);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#fff; /* esta vista es blanca como el diseño */
  color:var(--text-dark);
}

/* Container */
.container{
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   HEADER (fixed)
   ========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: radial-gradient(700px 220px at 10% 60%, rgba(128, 39, 247, .55), transparent 62%), radial-gradient(700px 220px at 90% 50%, rgba(0, 128, 239, .35), transparent 62%), linear-gradient(90deg, #2a0a3b 0%, #0b1220 40%, #0b2233 100%);

}

.header-inner{
  height: 72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-shell{
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-logo a{
  color: rgba(255,255,255,.9);
  text-decoration:none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .04em;
}

.header-nav{
  display:flex;
  align-items:center;
  gap: 28px;
}

.nav-link{
  position:relative;
  font-size: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.65);
  transition: color .25s ease;
  padding-bottom: 6px;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .35s ease;
}

.nav-link:hover{ color:#fff; }
.nav-link:hover::after{ transform: scaleX(1); }

.nav-link.active{
  color:#fff;
}
.nav-link.active::after{
  transform: scaleX(1);
}

.nav-instagram{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.7;
  transition: opacity .2s ease;
}
.nav-instagram:hover{ opacity:1; }

/* Keep traditional header in this layout */
.mobile-nav-toggle,
.mobile-header-instagram,
.mobile-menu-overlay {
  display: none !important;
}

/* =========================
   PAGE LAYOUT
   ========================= */
.articles-page{
  padding-top: 72px; /* compensa header fixed */
}

/* HERO BAND */
.articles-hero{
  position: relative;
  height: 140px;            /* como el diseño */
  display:flex;
  align-items:center;
  overflow:hidden;
  background: var(--bg-dark);
}

.articles-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 240px at 12% 30%, rgba(128,39,247,.55), transparent 60%),
    radial-gradient(900px 320px at 88% 50%, rgba(0,128,239,.35), transparent 62%),
    linear-gradient(90deg, #2a0a3b 0%, #0b1220 40%, #0b2233 100%);
  opacity: 1;
}

.articles-hero-inner{
  position: relative;
  z-index: 2;
}

.articles-title{
  margin:0;
  color:#fff;
  font-size: 34px;
  letter-spacing: .02em;
  display:flex;
  gap: 10px;
  align-items: baseline;
}
.articles-title .thin{ font-weight: 300; opacity:.9; }
.articles-title .bold{ font-weight: 800; }

/* LIST SECTION */
.articles-section{
  padding: 34px 0 10px;
  background:#fff;
}



/* CARD */


.articles-grid{
  column-count: 3;
  column-gap: 26px;
}

.article-card{
  background:#fff;
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: 0 12px 30px rgba(11,18,32,.08);
  border-radius: 2px;
  overflow:hidden;
  display: inline-block;
  width: 100%;
  margin: 0 0 26px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.card-media{
  display:block;
  background:#111;
}
.card-media img{
  width:100%;
  height: 130px;
  object-fit: cover;
  display:block;
}

.card-body{
  padding: 14px 16px 16px;
}

.card-category{
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(11,18,32,.45);
  text-transform: uppercase;
}

.card-title{
  color: var(--txt_negro, #0B1A32);
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 34px; /* 141.667% */
  text-transform: uppercase;
}
.card-title a{
  color: #14224a;
  text-decoration:none;
}
.card-title a:hover{
  text-decoration: underline;
}

.card-excerpt{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(11,18,32,.55);

  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.card-link{
  font-size: 11px;
  font-weight: 700;
  color: #1d5bff;
  text-decoration:none;
}
.card-link:hover{
  text-decoration: underline;
}

/* PAGINATION */
.pagination{
  margin: 30px 0 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  user-select:none;
}

.page-arrow,
.page-num{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  color: rgba(11,18,32,.65);
  text-decoration:none;
  font-size: 12px;
  border: 1px solid transparent;
}

.page-num:hover,
.page-arrow:hover{
  border-color: rgba(11,18,32,.18);
}

.page-num.is-active{
  border-color: rgba(128,39,247,.50);
  color: #2a1a5e;
  font-weight: 700;
}

.page-dots{
  color: rgba(11,18,32,.45);
  font-size: 14px;
}

/* FOOTER */
.site-footer{
  background: var(--bg-dark);
  color: rgba(255,255,255,.65);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  font-size: 12px;
}

.site-footer a{
  color: rgba(255,255,255,.65);
  text-decoration:none;
}
.site-footer a:hover{
  color: rgba(255,255,255,.95);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .articles-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .container{ width: min(1100px, calc(100% - 28px)); }
  .articles-grid{ grid-template-columns: 1fr; }
  .articles-hero{ height: 110px; }
  .articles-title{ font-size: 26px; }
  .header-nav{ gap: 18px; }
}

@media (max-width: 640px){

  .articles-grid{
    column-count: 1;
  }

  .article-card{
    width: 100%;
    margin-bottom: 24px;
  }

}