.studio-shell {
  --edge: clamp(16px, 1.8vw, 28px);
  --brand-size: clamp(56px, 6vw, 84px);
  --control-size: 44px;
  --header-top: max(var(--edge), env(safe-area-inset-top, 0px));
  --header-left: max(var(--edge), env(safe-area-inset-left, 0px));
  --header-right: max(var(--edge), env(safe-area-inset-right, 0px));
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #101810;
}

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px; background: #11190f; transform: translateY(-170%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: flex-start;
  padding: var(--header-top) var(--header-right) 0 var(--header-left);
}
.studio-brand { display: block; width: var(--brand-size); }
.studio-brand img { width: 100%; }

.site-controls {
  position: fixed;
  z-index: 20;
  top: var(--header-top);
  right: var(--header-right);
  display: flex;
  align-items: center;
  gap: 10px;
}

:is(.site-controls, .site-top-actions) :is(.language-switch, .side-menu) {
  background: rgb(16 24 19 / 72%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
  :is(.site-controls, .site-top-actions) .side-menu {
    background-color: rgb(16 24 19 / 90%);
  }
}

.site-controls .language-switch a { font-family: inherit; }

.menu-anchor { position: relative; }
.menu-trigger {
  display: grid;
  align-content: center;
  gap: 6px;
  width: var(--control-size);
  height: var(--control-size);
  padding: 7px;
  border: 0;
  background: transparent;
  color: #f4e7cc;
  filter: drop-shadow(0 1px 4px #0009);
}
.menu-trigger:hover { color: #dec788; }
.menu-trigger span { width: 100%; height: 2px; background: currentColor; }

.side-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(244px, calc(100vw - var(--header-left) - var(--header-right)));
  max-height: calc(100svh - var(--header-top) - var(--control-size) - max(18px, env(safe-area-inset-bottom, 0px)) - 8px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  border: 1px solid #cbb47766;
  border-radius: 16px;
  color: #f4e7cc;
  box-shadow: 0 12px 30px #0005;
  transform: translateY(-5px);
  opacity: 0;
  visibility: hidden;
  transition: transform .18s ease, opacity .18s ease, visibility 0s linear .18s;
}
.side-menu[data-open="true"] { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.side-menu nav { display: grid; }
.side-menu a, .menu-group-toggle {
  color: inherit;
  text-decoration: none;
}
.side-menu nav > a, .menu-contact-row, .menu-group-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}
.side-menu nav > a, .menu-group-toggle { padding-block: 7px; }
.side-menu a:hover, .menu-group-toggle:hover, .menu-group-toggle[aria-expanded="true"] { color: #dec788; }

.menu-group-toggle {
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-inline: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.menu-chevron { flex: 0 0 auto; transition: transform .18s ease; }
.menu-group-toggle[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }
.menu-subitems {
  margin: 0 0 4px 5px;
  border-left: 1px solid #cbb4774d;
  padding-left: 12px;
}
.menu-subitems a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 7px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.menu-contact-row { justify-content: space-between; gap: 8px; }
.social-links { display: flex; align-items: center; }
.social-links .social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #c5bb83;
}
.social-link svg { width: 21px; height: 21px; }
.menu-anchor :focus-visible { outline: 2px solid #e0c788; outline-offset: 2px; border-radius: 4px; }

.site-footer {
  margin-top: auto;
  padding: 12px 16px max(18px, env(safe-area-inset-bottom, 0px));
  color: #e7dcc5;
  font: 11px/1.6 system-ui, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.world-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #e5ad69;
  border-radius: 999px;
  background: #22170dec;
  color: #fff2da;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .09em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .18s ease;
}
.world-cta:hover { background: #4c341b; }

.studio-shell--fight { background: #17130f; }
.page-scenery { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.studio-shell--fight::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(#120b0780, #160c09bd 30%, #100b08d4 72%, #100b08e8); content: ''; }
.coming-soon { width: min(100%, 820px); margin: auto; padding: 24px 24px 48px; text-align: center; }
.coming-soon-logo { margin: 32px auto 24px; max-width: 600px; }
.eyebrow { color: #dec19a; font-size: 12px; letter-spacing: .23em; line-height: 1.7; }
.launch-status { color: #f2bd7b; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.coming-soon h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 400; }
.coming-soon > p:not(.eyebrow, .launch-status) { max-width: 560px; margin: 16px auto; color: #e0d3be; font: 16px/1.7 system-ui, sans-serif; }
.coming-soon-actions { margin: 26px 0 0; }

@media (max-width: 699px), (max-height: 520px) and (orientation: landscape) {
  .site-controls { position: absolute; gap: 6px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .studio-shell { --edge: 10px; --brand-size: 44px; }
  .side-menu { padding-block: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .side-menu, .menu-chevron, .world-cta { transition: none; }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 0 6px 0 10px;
  border: 1px solid #cfb47955;
  border-radius: 999px;
  background: #101813d6;
  color: #eadcc1;
}

.language-switch svg {
  width: 15px;
  height: 15px;
  margin-right: 3px;
  color: #dbbd83;
}

.language-switch a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 40px;
  padding: 0 5px;
  color: inherit;
  font: 650 11px/1 system-ui, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
}

.language-switch a + a::before {
  position: absolute;
  left: 0;
  height: 12px;
  border-left: 1px solid #cfb47945;
  content: '';
}

.language-switch a[aria-current="page"], .language-switch a:hover { color: #f5ce88; }
.language-switch a[aria-current="page"]::after {
  position: absolute;
  inset: auto 26% 7px;
  height: 1px;
  background: #f5ce88;
  content: '';
}
.language-switch a:focus-visible { outline-offset: -4px; border-radius: 4px; }

@media (pointer: coarse) {
  .language-switch a { min-height: 44px; }
}

@media (max-height: 520px) and (orientation: landscape), (max-width: 360px) {
  .language-switch { padding-inline: 5px; }
  .language-switch svg { width: 13px; height: 13px; margin-inline: 4px 1px; }
  .language-switch a { min-width: 31px; }
}

:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;--page-gutter:clamp(20px,3.8vw,64px);--page-width:1680px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-height:100svh;margin:0;color:#f6eddc;background:#07120d;line-height:1.65}
body::before{content:"";position:fixed;inset:0;z-index:-2;background-size:cover;background-position:center;opacity:.38}
body::after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(100deg,#06100ef0,#0b150dd8 60%,#13120cdd)}
.page-temple::before{background-image:url('/ambientes/fondo-the-temple-game.webp')}
.page-fight::before{background-image:url('/ambientes/fondo-fight-time.webp')}
.page-services::before{background-image:url('/ambientes/epa-professional/fondo-epa-desktop.webp')}
a{color:inherit}a:focus-visible{outline:2px solid #e2c685;outline-offset:5px}

.site-top {
  --edge: clamp(14px, 1.8vw, 28px);
  --brand-size: clamp(48px, 5vw, 72px);
  --control-size: 44px;
  --header-top: max(var(--edge), env(safe-area-inset-top, 0px));
  --header-left: max(var(--edge), env(safe-area-inset-left, 0px));
  --header-right: max(var(--edge), env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: var(--header-top) var(--header-right) 0 var(--header-left);
}

.site-top-brand,
.site-top-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
}

.site-top-logo {
  display: block;
  flex: none;
  line-height: 0;
  text-decoration: none;
}

.site-top-logo img {
  display: block;
  width: var(--brand-size);
  height: auto;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: clamp(62px, 6.75vw, 104px);
  padding-inline: clamp(10px, 1.2vw, 18px);
  border: 1px solid #cfb47955;
  border-radius: 999px;
  background: #101813d6;
  color: #eadcc1;
  font: 650 11px/1 system-ui, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-link:hover { background: #101813ee; border-color: #cfb4798c; color: #f5ce88; }
.site-top .menu-anchor { font-family: Georgia, 'Times New Roman', serif; }
.site-top button { font-family: inherit; cursor: pointer; }

@media (pointer: coarse) {
  .top-link { min-height: 46px; }
}

.page-container,
.page-footer {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left, 0px)) max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.page-container { padding-block: clamp(24px, 4vh, 52px) 80px; }
.hero{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);gap:clamp(24px,4.3vw,68px);align-items:center;margin-bottom:clamp(36px,6vh,64px)}
.hero--single{grid-template-columns:1fr;max-width:820px}
.page-services .hero{margin-bottom:12px}
.page-services .lead{margin-bottom:0}
.eyebrow{color:#ddc68a;font-size:12px;letter-spacing:.21em;text-transform:uppercase;font-weight:600}
h1{font-size:clamp(36px,4.7vw,64px);font-weight:450;line-height:1.1;margin:14px 0 24px;letter-spacing:-.035em}
h2{font-size:clamp(23px,2.5vw,31px);font-weight:500;line-height:1.25;margin:0 0 16px}
h3{font-size:20px;font-weight:500;margin:0 0 10px}
.lead{max-width:58ch;font-size:clamp(17px,1.7vw,20px);line-height:1.7;color:#f2e9d7;margin:0 0 28px}
.logo-panel{display:flex;align-items:center;justify-content:center;min-height:clamp(240px,24vw,346px);padding:clamp(24px,3vw,44px);background:#080f0fcf;border:1px solid #ccb4785c;border-radius:22px;box-shadow:0 20px 60px #0007}
.logo-panel img{max-width:100%;max-height:220px;object-fit:contain;filter:drop-shadow(0 5px 20px #000)}
.button-row{display:flex;gap:15px;flex-wrap:wrap;margin:28px 0 0}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 25px;border:1px solid #d1b573;border-radius:99px;background:#c4a96e22;text-decoration:none;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;transition:background .18s ease}
.button:hover{background:#cfb57745}.button--subtle{background:#09150e80;border-color:#b7ad8666}
.content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:30px 0}
.panel{border:1px solid #cbb47744;background:#0a130ed9;border-radius:18px;padding:clamp(22px,3vw,32px);box-shadow:0 14px 35px #0002}
.panel p,.panel li{color:#ded7c9;margin:0}.panel ul{padding-left:20px;margin:12px 0 0}
.section-heading{margin:48px 0 20px}.links{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}
.links a{display:inline-block;color:#f2dcab;text-decoration:underline;text-decoration-color:#aa865e;text-underline-offset:5px}
.note{font-size:14px;color:#d6cbb7}
.page-footer{border-top:1px solid #b8a46b44;padding-block:25px 40px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12px;color:#d4c9b5}
.page-footer a{color:inherit;text-decoration:none;border-bottom:1px solid #b5a16f}
@media(max-width:740px){.page-container{padding-top:20px}.hero{grid-template-columns:1fr;gap:25px}.logo-panel{min-height:190px;padding:24px}.logo-panel img{max-height:160px}.content-grid{grid-template-columns:1fr}.page-services::before{background-image:url('/ambientes/epa-professional/fondo-epa-mobile.webp')}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}

/* Caso de estudio Fogón Eventos — mantiene la estructura del portfolio EPA! */
.page-fogon::before{
  background-image:url('/ambientes/fondo-fogon-concierto.jpg');
  opacity:.48;
  background-position:center;
}
.page-fogon::after{
  background:linear-gradient(105deg,rgba(4,10,12,.96),rgba(4,12,13,.86) 52%,rgba(20,14,8,.91));
}
.page-fogon .eyebrow{color:#edc17d}
.page-fogon .logo-panel--fogon{
  background:linear-gradient(150deg,rgba(6,11,12,.98),rgba(22,17,10,.94));
  border-color:#d8a9687d;
  min-height:310px;
}
.page-fogon .logo-panel--fogon img{max-height:260px;filter:drop-shadow(0 6px 20px #000)}
.page-fogon .button--fogon{
  background:linear-gradient(135deg,#e8c587,#b68141);
  border-color:#f3d5a1;
  color:#21170e;
}
.page-fogon .button--fogon:hover{background:linear-gradient(135deg,#f5deaf,#cd954e)}
.page-fogon .panel{border-color:#d7ad6b50;background:#090e0ddf}
.page-fogon .panel h3{color:#e9c78d}
@media(max-width:740px){
  .page-fogon .logo-panel--fogon{min-height:210px}
}


/* Paneles de las páginas de proyecto:
   mismos escenarios que sus fichas del home, con velo oscuro para legibilidad. */
.page-temple .logo-panel,
.page-fight .logo-panel,
.page-fogon .logo-panel--fogon {
  background-color:#080e0e;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  border-color:#ccb47880;
  overflow:hidden;
}
.page-temple .logo-panel {
  background-image:
    linear-gradient(105deg,rgba(4,13,10,.64),rgba(3,11,10,.63)),
    url('/ambientes/fondo-the-temple-game.webp');
}
.page-fight .logo-panel {
  background-image:
    linear-gradient(105deg,rgba(17,7,5,.67),rgba(10,6,5,.61)),
    url('/ambientes/fondo-fight-time.webp');
}
.page-fogon .logo-panel--fogon {
  background-image:
    linear-gradient(105deg,rgba(3,8,11,.73),rgba(12,8,5,.69)),
    url('/ambientes/fondo-fogon-concierto.jpg');
}
.page-temple .logo-panel img,
.page-fight .logo-panel img,
.page-fogon .logo-panel--fogon img {
  position:relative;
  z-index:1;
  filter:drop-shadow(0 3px 6px #000) drop-shadow(0 9px 20px #000);
}

.note { margin-top: 30px; }

.page-mbm::before {
  background-image: url('/ambientes/mbm-ilustracion-tapa.webp');
  background-position: center 88%;
}
.page-mbm::after {
  background: linear-gradient(105deg, #081614f5, #0a1816db 65%, #121a16dc);
}
.page-mbm .hero h1 { text-wrap: balance; }
.page-mbm .hero .lead { margin-bottom: 19px; }
.page-mbm .button-row { margin-top: 17px; }
.edition-languages {
  margin: 0;
  color: #f1d29a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.logo-panel--mbm {
  padding: clamp(22px, 3.4vw, 48px);
  background:
    linear-gradient(145deg, #142624e8, #0b1210ef),
    url('/ambientes/mbm-ilustracion-tapa.webp') center 90% / cover;
}
.logo-panel--mbm img {
  display: block;
  width: min(100%, 242px);
  height: auto;
  max-height: none;
  border-radius: 4px;
  box-shadow: 0 16px 35px #0008;
}
.page-mbm .panel h3 { color: #f0d39b; }

@media (max-width: 360px) {
  .site-top { --edge: 8px; --brand-size: 44px; gap: 6px; }
}

@media (min-width: 620px) and (max-width: 740px) and (orientation: landscape) {
  .hero:not(.hero--single) { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-top { --edge: 10px; --brand-size: 44px; }
  .page-container { padding-top: 16px; }
  .hero { gap: clamp(16px, 3vw, 32px); margin-bottom: 32px; }
  .hero h1 { font-size: clamp(30px, 4.5vw, 48px); margin: 8px 0 14px; }
  .hero .lead { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
  .hero .button-row { margin-top: 14px; }
  .hero .button { min-height: 44px; padding: 8px 18px; }
  .hero .logo-panel { min-height: 176px; padding: 20px; }
  .hero .logo-panel img { max-height: 145px; }
  .hero .logo-panel--mbm img { width: min(100%, 145px); max-height: none; }
}

.page-fogon-games {
  text-align: center;
  text-transform: uppercase;
  background: #17100c;
}
.page-fogon-games::after {
  background: radial-gradient(ellipse at 50% 0%, #563921, #21140d 60%, #160e0a);
}
.page-fogon-games h1,
.page-fogon-games h2,
.page-fogon-games h3 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .04em;
  text-wrap: balance;
}
.page-fogon-games .hero {
  gap: clamp(24px, 4vw, 56px);
}
.page-fogon-games .lead {
  max-width: 42ch;
  margin-inline: auto;
  font-size: clamp(14px, 1.45vw, 17px);
}
.page-fogon-games .button-row,
.page-fogon-games .links,
.page-fogon-games .page-footer {
  justify-content: center;
}
.page-fogon-games .logo-panel {
  min-height: clamp(208px, 28vw, 328px);
  border-color: #d7a86e8c;
  background:
    linear-gradient(180deg, #160b0466, #1e110731),
    url('/ambientes/fondo-fogon-games.webp') center 66% / cover;
}
.page-fogon-games .logo-panel img {
  width: min(58%, 184px);
  height: auto;
  max-height: none;
}
.page-fogon-games .panel {
  border-color: #d7a86e52;
  background: #211610;
}
.page-fogon-games .panel h3 { color: #f3d0a1; }
