/* AFTOVEN 2.0: presentación cinematográfica sobre el sitio existente.
   CSS adicional: NO reemplaza cuentas, foro, i18n ni rutas. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');
:root {--aft2-bg:#080c13;--aft2-surface:#101721;--aft2-gold:#cba577;--aft2-text:#f1e6d9;--aft2-line:rgba(204,173,135,.25);--aft2-serif:'Cinzel',Georgia,serif;--aft2-sans:'Manrope','Segoe UI',Arial,sans-serif;color-scheme:dark}
html{background:var(--aft2-bg)}
body{background:#080c13;color:var(--aft2-text);-webkit-font-smoothing:antialiased}
.aft-header,.site-header,.auth-topbar{
  background:linear-gradient(180deg,rgba(6,10,17,.98),rgba(8,12,20,.96))!important;
  border-bottom:1px solid var(--aft2-line)!important;
  box-shadow:0 8px 32px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(14px);
}
.aft-header{position:sticky;top:0;z-index:60;height:74px}
.aft-header-wrap{height:100%;width:min(95%,1720px);max-width:none;gap:clamp(11px,1.6vw,25px)}
.aft-brand{min-width:210px;height:74px;gap:9px}
.aft-brand img{width:42px;height:42px;filter:saturate(.8) brightness(.86)}
.aft-brand-name{font:500 23px/1.1 var(--aft2-serif);letter-spacing:.035em;color:#ddba8f}
.aft-brand-text small{font-size:7px;letter-spacing:.15em;color:#baac9c}
.aft-nav{gap:clamp(10px,1.4vw,24px)}
.aft-nav a{height:74px;font:600 10px/1.3 var(--aft2-sans);letter-spacing:.045em;color:#d5d1ca}
.aft-nav a:hover,.aft-nav a.is-current{color:#f8dfb7}
.aft-nav a.is-current::after{height:1px;bottom:18px;background:#d4a574}
.aft-header-button{height:39px;min-width:75px;background:#101721;color:#ead8bf;border:1px solid #90755d;font-size:10px}
.aft-header-register{background:linear-gradient(140deg,#6a2a25,#361c1d);border-color:#a96350}
.aft-header-profile{max-width:190px}
#aft-language{height:38px;background:#0c121d;border:1px solid #735e4d;color:#e2c7a4}
.aft-menu-toggle{height:39px;background:#101721;border:1px solid #8d7058}
.aft-nav-auth-mobile{display:none}
/* Portada: el texto visible lo aporta el HTML, nunca los cuadros del video. */
.aft-hero.aft-cinematic-home{
  position:relative;min-height:calc(100svh - 74px);height:auto;aspect-ratio:auto;
  width:100%;display:grid;place-items:center;overflow:hidden;isolation:isolate;
  background:#0a101a;text-align:center;
}
.aft-cinematic-home .aft-hero-picture,.aft-cinematic-home .aft-hero-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 46%;pointer-events:none;user-select:none;
}
.aft-cinematic-home .aft-hero-picture{z-index:0;opacity:.85;filter:brightness(.45) saturate(.75) contrast(1.08)}
.aft-cinematic-home .aft-hero-video{
  z-index:1;opacity:0;filter:brightness(.54) saturate(.79) contrast(1.04);
  transition:opacity 1.25s ease;
}
.aft-cinematic-home .aft-hero-video.is-playing{opacity:.97}
.aft-cinematic-home::before{content:none!important}
.aft-cinematic-home::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:2!important;pointer-events:none!important;
  background:linear-gradient(180deg,rgba(4,8,14,.24) 0%,rgba(5,9,16,.25) 34%,rgba(5,9,15,.46) 70%,rgba(5,8,13,.83) 100%),
             linear-gradient(90deg,rgba(5,9,15,.38),rgba(5,9,15,.13) 40%,rgba(5,9,15,.25))!important;
}
.aft-cinematic-home .aft-mobile-hero-copy{
  display:flex!important;position:relative!important;z-index:5!important;
  flex-direction:column;align-items:center;justify-content:center;
  width:min(1050px,calc(100% - 35px))!important;max-width:1050px!important;
  margin:0 auto!important;padding:45px 18px 78px!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none;text-align:center;animation:aft2-appear 1.1s ease both;
}
@keyframes aft2-appear{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.aft-cinematic-home .aft-mobile-kicker{
  font:700 clamp(9px,.86vw,12px)/1.6 var(--aft2-sans);letter-spacing:.30em;
  color:#dfbb91;margin:0 0 11px;text-shadow:0 2px 11px #000;
}
.aft-cinematic-home .aft-mobile-hero-copy h2{
  font:500 clamp(62px,10vw,148px)/1.08 var(--aft2-serif)!important;
  white-space:nowrap;letter-spacing:.01em!important;margin:4px 0 0!important;
  background:linear-gradient(#fff5e4 3%,#e7cb9e 32%,#d6a978 64%,#987452 100%);
  background-clip:text;-webkit-background-clip:text;color:transparent!important;
  text-shadow:none;filter:drop-shadow(0 3px 12px rgba(0,0,0,.65));
}
.aft-cinematic-home .aft-mobile-hero-copy h3{
  font:400 clamp(12px,1.37vw,20px)/1.7 var(--aft2-serif)!important;
  letter-spacing:clamp(.13em,.36vw,.36em)!important;color:#f4e4cc!important;
  margin:10px 0 16px!important;text-shadow:0 2px 12px #000;
}
.aft-cinematic-home .aft-mobile-hero-copy>p:not(.aft-mobile-kicker){
  max-width:570px!important;width:100%!important;margin:2px auto 0!important;
  color:#e1d9d0!important;font:400 clamp(11px,.92vw,13px)/1.8 var(--aft2-sans)!important;
  text-shadow:0 2px 12px #000;
}
.aft-cinematic-home .aft-mobile-ctas{
  display:flex!important;gap:12px;justify-content:center;align-items:center;
  flex-wrap:wrap;margin:22px 0 0!important;
}
.aft-cinematic-home .aft-action-primary,.aft-cinematic-home .aft-action-secondary{
  font:600 11px/1.4 var(--aft2-serif);letter-spacing:.045em;
  min-height:44px;padding:12px 21px;border:1px solid #9e785a;transition:transform .2s,border-color .2s,background .2s;
}
.aft-cinematic-home .aft-action-primary{background:linear-gradient(#71342d,#411f20);color:#f9e8ce;border-color:#a76854;box-shadow:0 5px 22px #0004}
.aft-cinematic-home .aft-action-secondary{background:rgba(6,12,20,.65);color:#f2dfc1;border-color:#86735d}
.aft-cinematic-home .aft-action-primary:hover,.aft-cinematic-home .aft-action-secondary:hover{transform:translateY(-2px);border-color:#ebc394}
.aft-cinematic-home .aft-art-button{display:none!important}
.aft-cinematic-home .aft-hero-cleanart{display:none!important}
.aft-hero-foot{
  position:absolute;bottom:24px;left:clamp(20px,4vw,84px);right:clamp(20px,4vw,84px);
  z-index:6;display:flex;align-items:center;justify-content:space-between;gap:22px;
  color:#c4bbb0;font:600 10px/1.4 var(--aft2-sans);letter-spacing:.16em;
}
.aft-hero-status{display:inline-flex;align-items:center;gap:11px}
.aft-hero-status::before{content:"";width:6px;height:6px;background:#d1a57b;border-radius:50%;box-shadow:0 0 12px #e8af7866}
.aft-motion-toggle{
  display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:37px;
  background:rgba(7,13,22,.68);border:1px solid rgba(212,190,160,.35);
  color:#e6d8c9;font:600 10px/1.3 var(--aft2-sans);letter-spacing:.10em;
  padding:8px 15px;cursor:pointer;transition:background .2s,color .2s;
}
.aft-motion-toggle:hover{background:#1d2732;color:#fff}
.aft-motion-toggle[disabled]{opacity:.45;cursor:default}
.aft-portal-links{
  max-width:1320px;margin:0 auto;padding:24px 22px 0;display:flex;
  flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(10px,3vw,38px);
  color:#cfb79b;font:600 10px/1.4 var(--aft2-sans);letter-spacing:.11em;
}
.aft-portal-links a{padding:11px 8px;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.aft-portal-links a:hover{color:#f8ddad;border-color:#cba477}
.aft-cards{width:min(1400px,93%);padding:28px 0 0;gap:16px}
.aft-story-card{border:1px solid rgba(200,172,137,.25);box-shadow:0 10px 24px #0005;filter:saturate(.82)}
.aft-story-card:hover{border-color:#c7a678;filter:brightness(1.12) saturate(.9)}
.aft-discover{width:min(1400px,93%);margin:0 auto;padding:30px 0 56px;gap:20px}
.aft-world-card,.aft-status-box{border:1px solid var(--aft2-line);box-shadow:0 6px 25px #0004}
.aft-world-about h2,.aft-status-content h2{color:#e7c99f}
.aft-world-about p{color:#ccc6c1}
.aft-status-box{background-color:#0e1824}
.aft-footer,.site-footer,.auth-footer{background:linear-gradient(180deg,#080e17,#050910)!important;border-top:1px solid var(--aft2-line)!important}
.aft-footer-links a:hover{color:#f6deb4}
/* Resto del portal: mismo acabado, manteniendo todas las estructuras y scripts. */
.site-header .brand-words strong,.auth-brand b{font-family:var(--aft2-serif);font-weight:500;letter-spacing:.06em;color:#e3bd8a}
.site-header .nav-link,.auth-nav a{color:#d9d1c7;letter-spacing:.05em}
.site-header .nav-link:hover,.auth-nav a:hover{color:#ffdfac}
.notice-bar{background:#101822!important;border-bottom:1px solid var(--aft2-line);color:#d2bfa9}
.page-hero{background:linear-gradient(130deg,#0d1726 0%,#11171f 45%,#0b111a 100%)!important}
.page-hero .eyebrow{color:#d1a878}
.page-hero h1{font-family:var(--aft2-serif);font-weight:500;color:#f3e2cd}
.forum-panel,.account-panel{border-color:rgba(201,173,135,.35)!important;box-shadow:0 12px 30px #0003}
.auth-stage,.account-stage{background-color:#080e18}
.auth-frame{box-shadow:0 18px 65px #0008}
.auth-head-button,.auth-head-register,.nav-account{transition:border-color .2s,background .2s}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #f5ce97;outline-offset:3px}
/* The original styles hid links at intermediate widths. Make every route available in the mobile menu. */
@media(max-width:1350px){
  .aft-header-wrap{width:calc(100% - 40px);gap:11px}
  .aft-brand{min-width:170px}
  .aft-nav{display:none;position:absolute;top:74px;left:0;right:0;padding:14px max(20px,4vw) 20px;
    background:rgba(8,13,22,.985);border-bottom:1px solid var(--aft2-line);
    box-shadow:0 16px 30px #0007;flex-direction:column;align-items:stretch;gap:0;z-index:65}
  .aft-nav.is-open{display:flex}
  .aft-nav a,.aft-nav a:last-child{display:flex;height:auto;min-height:40px;font-size:12px;padding:10px 8px}
  .aft-nav a.is-current::after{display:none}
  .aft-menu-toggle{display:block;margin-left:5px}
}
@media(max-width:950px){
  .aft-header{height:68px}
  .aft-brand{height:68px}
  .aft-nav{top:68px}
  .aft-hero.aft-cinematic-home{min-height:calc(100svh - 68px)}
  .aft-cinematic-home .aft-mobile-hero-copy{padding:68px 18px 85px!important}
  .aft-cinematic-home .aft-mobile-hero-copy h2{font-size:clamp(58px,11vw,106px)!important}
  .aft-cinematic-home .aft-hero-picture{object-position:50% 50%}
  .aft-discover{padding-top:28px}
}
@media(max-width:670px){
  .aft-header-wrap{width:calc(100% - 22px);gap:6px}
  .aft-brand{min-width:0;margin-right:auto;gap:6px}
  .aft-brand img{width:36px;height:36px}
  .aft-brand-name{font-size:19px}
  .aft-brand-text small{font-size:6px;letter-spacing:.07em}
  .aft-header-button{display:none!important}
  #aft-language{width:47px;height:35px}
  .aft-menu-toggle{width:36px;height:35px;margin-left:2px}
  .aft-nav-auth-mobile{display:flex;flex-direction:column;margin-top:10px;padding-top:8px;border-top:1px solid var(--aft2-line)}
  .aft-nav-auth-mobile a{color:#f1cf9f}
  .aft-hero.aft-cinematic-home{min-height:max(670px,calc(100svh - 68px))}
  .aft-cinematic-home .aft-mobile-hero-copy{width:94%!important;padding:65px 4px 105px!important}
  .aft-cinematic-home .aft-mobile-kicker{font-size:9px;letter-spacing:.16em}
  .aft-cinematic-home .aft-mobile-hero-copy h2{font-size:clamp(49px,13vw,83px)!important;letter-spacing:0!important}
  .aft-cinematic-home .aft-mobile-hero-copy h3{font-size:clamp(11px,3.5vw,15px)!important;letter-spacing:.08em!important}
  .aft-cinematic-home .aft-mobile-hero-copy>p:not(.aft-mobile-kicker){font-size:12px!important;max-width:340px!important}
  .aft-cinematic-home .aft-mobile-ctas{gap:8px;margin-top:18px!important}
  .aft-cinematic-home .aft-action-primary,.aft-cinematic-home .aft-action-secondary{min-height:39px;font-size:10px;padding:10px 12px}
  .aft-hero-foot{left:16px;right:16px;bottom:15px;gap:8px}
  .aft-hero-status{font-size:8px;letter-spacing:.055em}
  .aft-motion-toggle{font-size:9px;min-height:35px;padding:8px 10px;letter-spacing:.01em}
  .aft-portal-links{padding:18px 13px 0;gap:3px 16px;justify-content:center;font-size:9px}
  .aft-cards{width:calc(100% - 32px);padding-top:18px}
  .aft-discover{width:calc(100% - 32px);padding:25px 0 34px}
}
@media(prefers-reduced-motion:reduce){
  .aft-cinematic-home .aft-hero-video{display:none!important}
  .aft-motion-toggle{display:none!important}
  .aft-cinematic-home .aft-mobile-hero-copy{animation:none!important}
}
