:root{
  --purple-dark: #2c0050;
  --purple: #4b0082;
  --purple-mid: #431e6e;
  --white: #ffffff;
  --off-white: #f6f6f6;
  --black: #000000;
}
*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:'Montserrat', arial, sans-serif;
  background:var(--white);
  color:#1b1b1b;
  line-height:1.5;
}
h1,h2,h3,h4{
  font-family:'League Spartan', arial, helvetica, sans-serif;
  font-weight:700;
  line-height:1.2;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{
  max-width:1160px;
  margin:0 auto;
  padding:0 24px;
}

/* ===== HEADER ===== */
.banner{
  background:var(--black);
  color:var(--white);
  text-align:center;
  padding:4px 0;
  font-size:14px;
  letter-spacing:0.5px;
}
header.hero{
  background:var(--purple-dark) url('https://img1.wsimg.com/isteam/ip/318db4b0-843f-464e-820f-3ba76aa2ee46/Sin%20t%C3%ADtulo-1.webp') center/cover no-repeat;
  position:relative;
  color:var(--white);
}
header.hero::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(44,0,80,0.55);
}
.nav{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.nav img{ height:56px; width:auto; }
.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  padding:48px 24px 56px;
  max-width:820px;
  margin:0 auto;
}
.hero-logo{
  height:72px;
  width:auto;
  margin:0 auto 32px;
}
.hero-content h1{
  font-size:clamp(40px, 6vw, 64px);
  margin-bottom:16px;
}
.hero-content p{
  font-size:18px;
  opacity:0.9;
}

/* Compact header for article pages */
header.article-hero{
  background:var(--purple-dark);
  color:var(--white);
}
header.article-hero .nav{ padding:20px 0; justify-content:flex-start; }
header.article-hero .nav img{ height:44px; }

/* ===== GALLERY STRIP ===== */
.gallery-strip{
  background:var(--purple-dark);
  display:flex;
}
.gallery-strip a{
  flex:1;
  display:block;
  overflow:hidden;
  position:relative;
}
.gallery-strip img{
  width:100%;
  height:100%;
  aspect-ratio:1280/668;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}
.gallery-strip a:hover img{ transform:scale(1.05); }
@media (max-width:720px){
  .gallery-strip{ flex-direction:column; }
  .gallery-strip img{ aspect-ratio:16/9; }
}

/* ===== ABOUT ===== */
.about{
  background:var(--purple-mid);
  color:var(--white);
  padding:80px 0;
}
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items:center;
}
.about-logo{
  justify-self:center;
  max-width:320px;
  width:100%;
}
.about-text{ text-align:center; }
.about-text h2{
  font-size:32px;
  margin-bottom:24px;
}
.about-text p{
  margin-bottom:16px;
  font-size:16px;
}
@media (max-width:720px){
  .about-grid{ grid-template-columns:1fr; text-align:center; }
}

/* ===== GAMES ===== */
.games{
  background:var(--white);
  color:#1b1b1b;
  padding:64px 0;
  text-align:center;
}
.games h2{
  font-size:32px;
  margin-bottom:40px;
  display:inline-block;
  color:#1b0080;
}
.games h2::after{
  content:"";
  display:block;
  width:50px;
  height:2px;
  background:#e2e2e2;
  margin:16px auto 0;
}
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:32px;
}
.card{
  text-align:center;
}
.card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:4px;
}
.card p{
  padding:16px 8px 0;
  font-size:15px;
  line-height:1.5;
  color:#1b1b1b;
}
.card-placeholder{
  aspect-ratio:4/3;
  border:2px dashed #d8d8d8;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#a0a0a0;
  font-family:'League Spartan', arial, helvetica, sans-serif;
  font-weight:700;
  font-size:18px;
  padding:16px;
}

/* ===== NEWS ===== */
.news{
  background:var(--white);
  padding:64px 0;
  text-align:center;
}
.news h2{
  font-size:32px;
  margin-bottom:40px;
  display:inline-block;
}
.news h2::after{
  content:"";
  display:block;
  width:50px;
  height:2px;
  background:#e2e2e2;
  margin:16px auto 0;
}
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:24px;
  text-align:left;
}
.news-card{
  border:1px solid #e2e2e2;
  border-radius:6px;
  overflow:hidden;
  transition:border-color .3s ease;
  display:block;
}
.news-card:hover{ border-color:var(--purple); }
.news-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.news-card .news-card-body{ padding:20px; }
.news-card time{
  font-size:13px;
  color:#888;
}
.news-card h4{
  font-size:18px;
  margin:12px 0;
  font-family:'Montserrat', sans-serif;
  font-weight:700;
}
.news-card span.read-more{
  font-size:14px;
  color:var(--purple);
  font-weight:600;
}

/* ===== CONTACT ===== */
.contact{
  background:var(--purple);
  color:var(--white);
  padding:64px 0;
  text-align:center;
}
.contact h2{
  font-size:32px;
  margin-bottom:32px;
  display:inline-block;
}
.whatsapp-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:#25D366;
  color:var(--white);
  padding:16px 32px;
  border-radius:4px;
  font-weight:700;
  transition:background .2s ease;
}
.whatsapp-btn:hover{ background:#1ebe5a; }
.whatsapp-btn svg{ width:24px; height:24px; }

/* ===== FOOTER ===== */
footer{
  background:var(--black);
  color:var(--white);
  padding:48px 0;
  text-align:center;
}
.socials{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-bottom:24px;
}
.socials a{
  width:40px; height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
}
.socials svg{ width:20px; height:20px; fill:var(--white); }
footer p{ font-size:13px; color:#969696; margin-bottom:4px; }
footer p.footer-legal{ margin-top:16px; color:#7a7a7a; }

/* ===== ARTICLE PAGE ===== */
.article-page{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:56px;
  max-width:1160px;
  margin:0 auto;
  padding:48px 24px 80px;
}
.back-link{
  display:inline-block;
  margin-bottom:24px;
  font-size:14px;
  font-weight:600;
  color:var(--purple);
}
.back-link:hover{ text-decoration:underline; }
.article-meta{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:#888;
  margin-bottom:16px;
}
.article-meta .tag{ color:var(--purple); font-weight:600; }
.article-main h1{
  font-size:clamp(26px,3.4vw,36px);
  margin-bottom:16px;
}
.article-inline-image{
  float:left;
  width:340px;
  max-width:100%;
  border-radius:4px;
  margin:0 28px 12px 0;
}
.article-body p{
  margin-bottom:18px;
  font-size:16px;
  line-height:1.7;
}
.article-body ol{
  margin:0 0 18px 20px;
  clear:left;
}
.article-body ol li{
  margin-bottom:10px;
  font-size:16px;
  line-height:1.6;
}
.article-body em{
  color:#888;
  font-size:14px;
}
.article-body strong{ font-weight:700; }
.article-body::after{ content:""; display:block; clear:both; }

/* Sidebar */
.article-sidebar h3{
  font-size:20px;
  margin-bottom:16px;
}
.sidebar-links{ margin-bottom:40px; }
.sidebar-link{
  display:block;
  margin-bottom:12px;
  font-size:15px;
  color:#666;
}
.sidebar-link.active{
  color:var(--purple);
  font-weight:700;
}
.sidebar-link:hover{ color:var(--purple); }
.sidebar-post{
  display:flex;
  gap:12px;
  margin-bottom:20px;
  align-items:flex-start;
}
.sidebar-post img{
  width:80px;
  height:60px;
  object-fit:cover;
  border-radius:4px;
  flex-shrink:0;
}
.sidebar-post p{
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:4px;
}
.sidebar-post time{
  font-size:12px;
  color:#888;
}
@media (max-width:820px){
  .article-page{ grid-template-columns:1fr; }
  .article-inline-image{ float:none; width:100%; margin:0 0 20px; }
}
