/* === HERO SECTION === */
/* HERO container */
.inner-hero {
    background: url(../img/bg.jpg), #23263a;
    background-position: bottom;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding: 30px 0;
}

/* HERO scanlines overlay */
.inner-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        repeating-linear-gradient(to bottom, rgba(255, 230, 0, 0.09) 0 2px, transparent 2px 8px);
}

/* HERO content box */
.content-hero {
    text-align: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 33px;
    border: solid var(--yellow);
    max-width: 90%;
}

/* HERO title */
.inner-title {
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 4rem;
    letter-spacing: 4px;
    color: #ffe600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 5rem;
    z-index: 3;
    position: relative;
}

/* HERO h1 spacing */
.inner-hero .h1 {
    margin-bottom: 0.2em;
}

/* HERO kicker spacing */
.inner-hero .kicker {
    margin-bottom: 2em;
}

/* HERO description */
.inner-hero-desc {
    max-width: 600px;
    text-align: center;
    font-size: 1.2em;
    opacity: .85;
}

/* HERO button spacing */
.inner-hero-btn {
    margin-top: 1.5em;
}

/* === TABBED SECTION === */
.tabbed-menu-mobile {
    display: none;
}

.tabbed-mobile-btn {
    width: 100%;
    background: #151720;
    color: #ffe600;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    border: none;
    border-bottom: 3.5px solid #ffe600;
    border-radius: 0;
    padding: 18px 38px 14px 18px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    outline: none;
}

.tabbed-mobile-arrow {
    margin-left: 12px;
    font-size: 1.2em;
    transition: transform 0.2s;
}

.tabbed-mobile-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #151720;
    border-bottom: 3.5px solid #ffe600;
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 8px 24px #000a;
    border-radius: 0 0 12px 12px;
    animation: tabbedMobileListIn 0.18s;
}

.tabbed-mobile-list.open {
    display: block;
}

.tabbed-mobile-list li {
    padding: 16px 38px 14px 18px;
    color: #ffe600;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    border-bottom: 1.5px solid #ffe60033;
    transition: background 0.18s, color 0.18s;
}

.tabbed-mobile-list li:last-child {
    border-bottom: none;
}

.tabbed-mobile-list li:hover {
    background: #23263a;
    color: #00fff7;
}

@keyframes tabbedMobileListIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabbed-section-bg {
    width: 100vw;
    background: #ffe600;
    position: relative;
    padding: 3rem;
}

.tabbed-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #0e0f13;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tabbed-menu {
    display: flex;
    justify-content: flex-start;
    border-bottom: 3.5px solid #ffe600;
    background: #151720;
    padding: 0 0 0 0;
    gap: 0;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    color: #ffe600;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 18px 38px 14px 38px;
    cursor: pointer;
    border-right: 2px solid #ffe60033;
    border-radius: 0;
    transition: color 0.18s, background 0.18s;
    position: relative;
    outline: none;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active,
.tab-btn:focus {
    color: #00fff7;
    background: #23263a;
}

.tabbed-content-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.tabbed-content {
    display: none;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

.tabbed-content.active {
    display: flex;
}

.tabbed-text {
    flex: 1 1 0;
    padding: 25px 38px 30px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #ffe600;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffe600 #181b24;
}

.tabbed-text-inner {
    max-height: 293px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffe600 #181b24;
    padding-right: 12px;
    /* To avoid content being hidden under scrollbar */
}

.tabbed-text h3 {
    font-size: 2.2rem;
    margin: 0 0 18px 0;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    color: #ffe600;
    letter-spacing: 2px;
}

.tabbed-img {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181b24;
    border-left: 2.5px solid #ffe60033;
}

.tabbed-img img {
    object-fit: cover;
    height: 100%;
    display: block;
    object-position: right;
}

/* === CHARACTERS SECTION === */
.characters-section {
    margin: 0 0 80px 0;
    padding: 56px 3vw 0 3vw;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 38px;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.character-card {
    background: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
    box-shadow: none;
    transition: none;
    overflow: visible;
    cursor: pointer;
}

.character-img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1/1.15;
    object-fit: contain;
    border-radius: 0;
    background: none;
    border: none;
    margin-bottom: 0;
    box-shadow: none;
    display: block;
}

.character-img-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
}

.character-img-wrap::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #0b0c10 100%);
}

.character-btn {
    background: none;
    color: #ffe600;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    border: solid 2px #ffe600;
    border-radius: 0;
    padding: 10px 0 10px 0;
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
    cursor: pointer;
    transition: color 0.18s;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}
.character-btn:focus {
    outline: none;
    color: #00fff7;
    border-color: #00fff7;
}
.character-btn::after {
    content: '';
    display: block;
    margin: 10px auto 0 auto;
    width: 60px;
    height: 5px;
    background: #ffe600;
    transition: background 0.2s, width 0.2s;
}

.character-card:hover .character-btn::after {
    background: #00fff7;
    width: 90px;
}

.character-card:hover .character-btn {
    color: #00fff7;
    text-decoration: none;
}

.character-info {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

/* === GALLERY SECTION === */
.gallery_main {
    background: url(../img/bg.jpg), #23263a;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 56px 0 64px 0;
    width: 100vw;
    border-top: solid 8px var(--yellow);
    position: relative;
    overflow: hidden;
}

.gallery_main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        repeating-linear-gradient(to bottom, rgba(255, 230, 0, 0.09) 0 2px, transparent 2px 8px);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(.77, .2, .32, 1);
    z-index: 3;
}

.neo-card {
    background: var(--bg);
    border: 1px solid var(--edge);
    padding: 20px;
    position: relative;
    transition: transform .2s ease-out;
    width: 100%;
    max-width: 340px;
    height: 420px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.38s cubic-bezier(.77, .2, .32, 1), transform 0.38s cubic-bezier(.77, .2, .32, 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.neo-card.hide {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
}

.neo-card.show {
    opacity: 1;
    transform: translateY(0);
}

.neo-card:hover {
    transform: translateY(-2px);
}

.neo-card.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.neo-card::before,
.neo-card::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    filter: drop-shadow(0 0 6px var(--yellow));
}

.neo-card::before {
    top: 0;
    left: 0;
    border-top: 4px solid var(--yellow);
    border-left: 4px solid var(--yellow);
}

.neo-card::after {
    right: 0;
    bottom: 0;
    border-bottom: 4px solid var(--yellow);
    border-right: 4px solid var(--yellow);
}

.neo-frame {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
    cursor: zoom-in;
}

.neo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--yellow), transparent) 0 0/28px 4px no-repeat,
        linear-gradient(180deg, var(--yellow), transparent) 0 0/4px 28px no-repeat,
        linear-gradient(270deg, var(--yellow), transparent) 100% 100%/28px 4px no-repeat,
        linear-gradient(0deg, var(--yellow), transparent) 100% 100%/4px 28px no-repeat;
    filter: drop-shadow(0 0 6px var(--yellow));
    z-index: 2;
    pointer-events: none;
}

.neo-frame {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.neo-frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.neo-caption {
    text-align: center;
    color: var(--yellow);
    padding: 10px 0 4px;
    letter-spacing: 1px;
    text-shadow: 0 0 1px var(--yellow), 0 0 8px var(--yellow);
}

.open-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 54px;
    height: 54px;
    border: 2px solid var(--yellow);
    background: rgba(0, 0, 0, .55);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 3;
    cursor: pointer;
}

.neo-card:hover .open-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.02);
}

.open-btn svg {
    width: 26px;
    height: 26px;
    fill: var(--yellow);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.lightbox.open {
    display: flex;
}

.lightbox__inner {
    max-width: min(92vw, 1400px);
    max-height: 92vh;
    position: relative;
}

.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border: 1px solid var(--edge);
}

.lightbox__caption {
    text-align: center;
    margin-top: 10px;
    color: var(--yellow);
    text-shadow: 0 0 1px var(--yellow), 0 0 8px var(--yellow);
}

.lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--yellow);
    background: #000;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.lightbox__close svg {
    width: 20px;
    height: 20px;
    fill: var(--yellow);
}

/* === SUBSCRIBE SECTION === */
div#mc_embed_shell{
    width: 100%;
}
.subscribe-section {
    background: var(--yellow);
    padding: 64px 0 64px 0;
    width: 100vw;
    color: #ffe600;
    display: flex;
    justify-content: center;
}

.subscribe__in {
    max-width: 90%;
    margin: 0 auto;
    background: #23263a;
    border-radius: 18px;
    padding: 38px 32px 32px 32px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscribe-title {
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-align: center;
    color: #ffe600;
    text-transform: uppercase;
}

.subscribe-form {
    width: 100%;
    display: flex;
    gap: 0.7em;
    margin-bottom: 18px;
}

.subscribe-input {
    flex: 1 1 0;
    background: transparent;
    border: 2.5px solid #ffe600;
    color: #ffe600;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    font-size: 1.1em;
    padding: 12px 16px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    letter-spacing: 1px;
    border-radius: 0;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}

.subscribe-input:focus {
    border-color: #00fff7;
    color: #00fff7;
    background: #181b24;
}

.subscribe-btn {
    background: #ffe600;
    color: #181b24;
    border: 2.5px solid #ffe600;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 900;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s;
    border-radius: 0;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}

.subscribe-btn:hover:enabled {
    background: #00fff7;
    color: #181b24;
    border-color: #00fff7;
}

.subscribe-desc {
    color: #ffe600cc;
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
}

/* Gallery navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 38px;
    margin: 38px 0 0 0;
    z-index: 3;
    position: relative;
}

.gallery-btn {
    width: 64px;
    height: 64px;
    background: #181b24;
    border: 4px solid #ffe600;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    box-shadow: none;
}

.gallery-btn svg {
    display: block;
}

.gallery-btn:active,
.gallery-btn:focus {
    border-color: #00fff7;
    background: #23263a;
}

@media (min-width:1200px) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width:900px) and (max-width:1199px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:600px) and (max-width:899px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .character-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100vw;
        gap: 28px;
    }

    .gallery {
        max-width: 90vw;
    }

    .characters-section {
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .inner-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 900px) {
    .tabbed-section {
        max-width: 98vw;
    }

    .tabbed-content.active {
        flex-direction: column;
    }

    .tabbed-text {
        padding: 28px 18px 18px 18px;
        border: none;
        min-height: 350px;
    }

    .tabbed-img {
        border: none;
    }
}

@media (max-width: 700px) {
    .tabbed-menu {
        display: none;
    }

    .tabbed-menu-mobile {
        display: block;
        position: relative;
        width: 100%;
        z-index: 2;
    }

    .tabbed-section {
        border-radius: 0 0 22px 22px;
    }
}

@media (max-width: 600px) {
    .tabbed-img {
        min-height: unset;
        padding: 0;
        max-width: 100vw;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #181b24;
        border-top: 2.5px solid #ffe60033;
        overflow: visible;
    }

    .tabbed-img img {
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .character-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width:599px) {
    .gallery {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .neo-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .character-list {
        grid-template-columns: 1fr;
        place-items: center;
        gap: 10px;
        max-width: 90%;
    }

    .characters-section {
        padding-left: 0.5vw;
        padding-right: 0.5vw;
    }

    .inner-title {
        font-size: 2rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

@media (hover:none) {
    .open-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

/* CLASES FALTANTES DEL ORIGINAL */
.neo-card[style*="display: none"] {
    opacity: 0;
}

.character-info[style*="display: block"] {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1;
    color: #ffe600;
    text-align: center;
    height: 100%;
    background: rgba(30, 34, 54, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px #000a;
    padding: 38px 24px;
    font-family: 'Bebas Neue', system-ui, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    animation: fadeInCharInfo 0.38s;
}
@keyframes fadeInCharInfo {
    from { opacity: 0; transform: translateY(18px);}
    to { opacity: 1; transform: translateY(0);}
}
.character-info[style*="display: block"] h1 {
    margin-bottom: 5px;
    font-size: 3rem;
}

/* Close button injected into character-info overlays */
.character-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 2px solid #ffe600;
    background: rgba(0,0,0,0.6);
    color: #ffe600;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 40;
}
.character-info-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,255,247,0.12), 0 0 0 1px #00fff7;
}

.creator-link {
    border: 7px solid #ffe600;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}

.cyber-border {
    display: inline-block;
    padding: 0.18em 1.5em 0.18em 1.5em;
    border: 7px solid #ffe600;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}