/* Mundijuegos — bespoke stylesheet */
:root{
  --blue-900:#0b3d91;
  --blue-800:#0d47a1;
  --blue-700:#1256c9;
  --blue:#1a73e8;
  --blue-400:#4c8dff;
  --blue-100:#e8f0fe;
  --red:#d93025;
  --red-dark:#b5251b;
  --grey-100:#f4f4f5;
  --grey-200:#d8d8d8;
  --grey-300:#c4c7c5;
  --grey-700:#5f6368;
  --ink:#1a1c1e;
  --white:#ffffff;
  --radius:14px;
  --shadow:0 10px 30px rgba(11,61,145,.14);
  --maxw:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--grey-100);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.nu{font-variant-numeric:tabular-nums}

/* ---------- Header ---------- */
.site-header{
  background:linear-gradient(90deg,var(--blue-900),var(--blue-700));
  position:sticky;top:0;z-index:50;
  box-shadow:0 2px 14px rgba(0,0,0,.18);
}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.28rem;letter-spacing:.2px;color:var(--white)}
.brand img{width:40px;height:40px;border-radius:9px;background:var(--white);padding:3px}
.brand .accent{color:var(--red)}
.desktop-nav{display:flex;align-items:center;gap:26px;margin-left:12px;flex:1}
.desktop-nav a{color:var(--blue-100);font-weight:600;font-size:.95rem;opacity:.9}
.desktop-nav a:hover{opacity:1;color:var(--white)}
.header-actions{display:flex;align-items:center;gap:10px}
.lang-switch{display:flex;gap:6px}
.lang-switch a{padding:6px 9px;border-radius:8px;font-size:.8rem;font-weight:700;color:var(--blue-100);border:1px solid rgba(255,255,255,.25)}
.lang-switch a.active{background:var(--white);color:var(--blue-800);border-color:var(--white)}
.btn{display:inline-block;padding:10px 18px;border-radius:10px;font-weight:700;font-size:.9rem;cursor:pointer;border:2px solid transparent;white-space:nowrap}
.btn-ghost{color:var(--white);border-color:rgba(255,255,255,.4)}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-red{background:var(--red);color:var(--white)}
.btn-red:hover{background:var(--red-dark)}
.burger{display:none;width:44px;height:44px;border:0;background:rgba(255,255,255,.12);border-radius:9px;position:relative;cursor:pointer;flex:0 0 auto}
.burger span,.burger span::before,.burger span::after{content:"";position:absolute;left:11px;right:11px;height:2px;background:var(--white);border-radius:2px}
.burger span{top:21px}
.burger span::before{top:-7px}
.burger span::after{top:7px}
.mobile-nav{display:none;background:var(--blue-900);border-top:1px solid rgba(255,255,255,.15)}
.mobile-nav.open{display:block}
.mobile-nav .wrap{flex-direction:column;align-items:stretch;height:auto;padding:16px 24px;gap:14px}
.mobile-nav a{padding:10px 4px;color:var(--blue-100);font-weight:600;border-bottom:1px solid rgba(255,255,255,.08)}
.mobile-nav .mob-actions{display:flex;gap:10px;margin-top:6px}
.mobile-nav .mob-actions .btn{flex:1;text-align:center}
.mobile-nav .lang-switch{margin-top:4px}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(135deg,var(--blue-900) 0%,var(--blue-700) 45%,var(--blue-400) 100%);
  color:var(--white);position:relative;overflow:hidden;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 82% 18%,rgba(255,255,255,.16),transparent 55%),
             radial-gradient(circle at 6% 92%,rgba(217,48,37,.28),transparent 45%);
  pointer-events:none;
}
.hero .wrap{position:relative;padding:64px 24px 56px;display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center}
.eyebrow{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:var(--white);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 12px;border-radius:20px;margin-bottom:16px}
.hero-title{font-size:2.5rem;font-weight:800;line-height:1.15;margin:0 0 16px;max-width:20ch}
.hero-title .accent{color:#ffd7d3}
.hero-sub{font-size:1.06rem;color:var(--blue-100);max-width:52ch;margin:0 0 26px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-stats{display:flex;gap:26px;margin-top:34px;flex-wrap:wrap}
.hero-stats div{min-width:110px}
.hero-stats strong{display:block;font-size:1.5rem;font-weight:800}
.hero-stats span{font-size:.82rem;color:var(--blue-100)}
.hero-art{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hero-art img{border-radius:16px;box-shadow:var(--shadow);border:3px solid rgba(255,255,255,.35);width:100%;height:auto;aspect-ratio:200/95;object-fit:cover}
.hero-art img.sm{object-fit:contain;padding:16px 40px;background:var(--blue-100)}
.hero-art .card-a{transform:translateY(-10px) rotate(-2deg)}
.hero-art .card-b{transform:translateY(14px) rotate(2deg)}

/* ---------- Sections shared ---------- */
section{padding:56px 0}
.section-head{max-width:640px;margin:0 0 32px}
.kicker{color:var(--blue);font-weight:800;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.section-title{font-size:1.9rem;font-weight:800;margin:8px 0 10px;color:var(--blue-900)}
.section-lede{color:var(--grey-700);font-size:1.02rem}

/* ---------- Game grid ---------- */
.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.game-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 14px rgba(11,61,145,.08);border:1px solid var(--grey-200);transition:transform .18s ease,box-shadow .18s ease}
.game-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.game-card .thumb{width:100%;aspect-ratio:200/95;object-fit:cover;background:var(--grey-200)}
.game-card .thumb.sq{aspect-ratio:1/1;object-fit:contain;padding:14px;background:var(--blue-100)}
.game-card .thumb.sm{aspect-ratio:200/95;object-fit:contain;padding:16px 40px;background:var(--blue-100)}
.game-card .thumb-deco{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:var(--blue-100);font-size:2.2rem}
.game-card .cap{display:flex;align-items:center;justify-content:space-between;padding:12px 14px}
.game-card .cap span{font-weight:700;font-size:.95rem}
.game-card .tag{font-size:.7rem;font-weight:700;color:var(--red);background:#fdeceb;padding:3px 8px;border-radius:6px}

/* ---------- Features strip ---------- */
.features{background:var(--white);border-top:1px solid var(--grey-200);border-bottom:1px solid var(--grey-200)}
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.feat-card{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:12px;background:var(--grey-100)}
.feat-card img{width:34px;height:34px;object-fit:contain;flex:0 0 auto;margin-top:2px}
.feat-card span{font-weight:700;font-size:.92rem;display:block}
.feat-card p{margin:4px 0 0;font-size:.84rem;color:var(--grey-700)}

/* ---------- Bonus band ---------- */
.bonus-band{background:linear-gradient(120deg,var(--red) 0%,var(--red-dark) 100%);color:var(--white)}
.bonus-band .wrap{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;padding:38px 24px}
.bonus-band .cap{font-weight:800;font-size:1.5rem;max-width:32ch}
.bonus-band p{color:#ffe2df;margin:8px 0 0;max-width:44ch;font-size:.92rem}
.bonus-band .btn{background:var(--white);color:var(--red-dark)}
.bonus-band .btn:hover{background:var(--blue-100)}

/* ---------- SEO article ---------- */
.seo-block{background:var(--white)}
.seo-block .wrap{max-width:880px}
.seo-block article h1{font-size:2rem;font-weight:800;color:var(--blue-900);line-height:1.2;margin:0 0 22px}
.seo-block article h2{font-size:1.5rem;font-weight:800;color:var(--blue-900);margin:40px 0 14px}
.seo-block article h3{font-size:1.15rem;font-weight:700;color:var(--blue-700);margin:26px 0 8px}
.seo-block article p{color:#33363a;margin:0 0 16px;font-size:1rem}
.seo-block article strong{color:var(--blue-900)}
.breadcrumb{font-size:.85rem;color:var(--grey-700);margin-bottom:18px}
.breadcrumb a{color:var(--blue-700);font-weight:600}
.breadcrumb span{margin:0 6px}

/* ---------- FAQ ---------- */
.faq-list{border-top:1px solid var(--grey-200)}
.faq-item{border-bottom:1px solid var(--grey-200)}
.faq-q{width:100%;text-align:left;background:none;border:0;padding:18px 4px;display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;font-weight:700;font-size:1rem;color:var(--blue-900)}
.faq-q::after{content:"+";font-size:1.3rem;color:var(--red);flex:0 0 auto;transition:transform .2s ease}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.faq-a p{margin:0 4px 18px;color:#33363a}
.faq-item.open .faq-a{max-height:400px}

/* ---------- Table (SEO data tables) ---------- */
.seo-table-wrap{overflow-x:auto;margin:18px 0 24px}
table.seo-table{width:100%;border-collapse:collapse;table-layout:fixed}
table.seo-table th,table.seo-table td{border:1px solid var(--grey-200);padding:10px 12px;font-size:.92rem;overflow-wrap:anywhere;text-align:left}
table.seo-table th{background:var(--blue-100);color:var(--blue-900)}

/* ---------- Footer ---------- */
.site-footer{background:var(--blue-900);color:var(--blue-100);padding:44px 0 24px}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px;margin-bottom:28px}
.foot-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.1rem;color:var(--white);margin-bottom:10px}
.foot-brand img{width:32px;height:32px;border-radius:7px;background:var(--white);padding:2px}
.site-footer .foot-title{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--white);margin:0 0 12px}
.site-footer p{font-size:.86rem;color:var(--blue-100);max-width:40ch}
.foot-links{list-style:none;margin:0;padding:0}
.foot-links li{margin-bottom:9px}
.foot-links a{font-size:.88rem;color:var(--blue-100)}
.foot-links a:hover{color:var(--white)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:18px;font-size:.78rem;color:#a9c3f0;display:flex;flex-direction:column;gap:8px}
.age-badge{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:2px solid var(--red);color:var(--red);font-weight:800;border-radius:8px;font-size:.8rem;background:var(--white)}
.foot-legal{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr;padding:44px 20px 40px}
  .hero-art{order:-1;max-width:420px}
  .feat-grid{grid-template-columns:repeat(2,1fr)}
  .game-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .desktop-nav,.header-actions .lang-switch,.header-actions .btn{display:none}
  .burger{display:block}
  .site-header .wrap{height:64px}
}
@media (max-width:560px){
  .wrap{padding:0 16px}
  .hero-title{font-size:1.7rem}
  .hero-stats{gap:16px}
  .game-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .section-title{font-size:1.5rem}
  .bonus-band .wrap{padding:28px 16px}
  .foot-grid{grid-template-columns:1fr}
  table.seo-table th,table.seo-table td{font-size:.78rem;padding:7px 8px}
  .seo-block article h1{font-size:1.5rem}
  .seo-block article h2{font-size:1.25rem}
}
