:root {
    --colorRojo: #E83028;
    --colorBlanco: #FFFFFF;
    --colorNegro: #0A0A0A;
    --colorFondo: #222222;
    --colorAmarillo: #FFD700;
    --colorAzul: #1E90FF;
    --fontPrimary: 'Orbitron', sans-serif;
    --fontSecondary: 'Roboto', sans-serif;
}

*{
    scroll-behavior: smooth;
}

section, .quote-section, footer {
    view-timeline-name: --section;
    animation: autoShowAnimation both ease-out;
    animation-timeline: --section;
    animation-range: entry 0% cover 10%;
}

.hero,
.slider2,
.navbar {
    animation: none !important;
}

body {
    margin: 0;
    font-family: var(--fontSecondary);
    background: var(--colorNegro);
    color: var(--colorBlanco);
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, 
        rgb(10, 10, 10) 0%, 
        rgba(255, 255, 255, 0) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(10px);
    mask-image: linear-gradient(to top, 
        black 0%, 
        transparent 100%);
}

.autoShow{
    animation: autoShowAnimation both;
    animation-timeline: view(100% 5%);
}

@keyframes autoShowAnimation {
    from {
        filter: blur(20px) brightness(1.5);
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        filter: blur(0) brightness(1);
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
  
section:nth-child(odd) {
    animation-delay: 0.1s;
}
  
section:nth-child(even) {
    animation-delay: 0.2s;
}

/* Navbar Styling */
/* Navbar Styling */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 80px;      
    padding: 0 40px;   
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--colorRojo);
}

.logo {
    font-family: var(--fontPrimary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--colorBlanco);
    text-shadow: 0 0 5px var(--colorRojo), 0 0 10px var(--colorRojo);
    letter-spacing: 3px;
    margin: 0;
    transition: all 0.3s ease;
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--colorRojo), 0 0 20px var(--colorRojo);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-self: center;
}

.nav-link {
    color: var(--colorBlanco);
    text-decoration: none;
    font-family: var(--fontPrimary);
    font-weight: 600;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--colorAmarillo);
    text-shadow: 0 0 5px var(--colorAmarillo);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--colorAmarillo);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.join-btn {
    background: linear-gradient(135deg, var(--colorRojo), #c62828);
    color: var(--colorBlanco);
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-family: var(--fontPrimary);
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(232, 48, 40, 0.7);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(30deg);
    transition: all 1s ease-in-out;
}

.join-btn:hover {
    background: var(--colorBlanco);
    color: var(--colorRojo);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(232, 48, 40, 0.9);
}

.join-btn:hover::before {
    left: 100%;
}

.subtitle {
    font-family: var(--fontPrimary);
    font-size: 1.8rem;
    margin-top: 20px;
    position: relative;
    z-index: 5;
    text-shadow: 0 0 10px var(--colorRojo), 0 0 5px var(--colorNegro);
    letter-spacing: 2px;
    color: var(--colorBlanco);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from {
        text-shadow: 0 0 10px var(--colorRojo), 0 0 5px var(--colorNegro);
    }
    to {
        text-shadow: 0 0 20px var(--colorRojo), 0 0 15px var(--colorAmarillo);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('images/bg-earth.webp') center/cover;
    color: var(--colorBlanco);
    font-family: var(--fontPrimary);
    display: flex;
    align-items: center;
}

.hero-content {
    right: 10%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding: 0 5%;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 15px var(--colorRojo), 0 0 30px var(--colorRojo);
}

.hero-title .highlight {
    color: var(--colorRojo);
    display: block;
    font-size: 5rem;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--colorBlanco);
    margin: 1rem 0;
    max-width: 600px;
    font-family: var(--fontSecondary);
    line-height: 1.6;
}

.hero-button {
    text-decoration: none;
    background: var(--colorRojo);
    color: var(--colorBlanco);
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    font-family: var(--fontPrimary);
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(232, 48, 40, 0.7);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.hero-button:hover {
    background: var(--colorBlanco);
    color: var(--colorRojo);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(232, 48, 40, 0.9);
}

.media-preview {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.media-preview::-webkit-scrollbar {
    display: none;
}

.media-card {
    display: block;
    min-width: 220px;
    background-color: rgba(10, 10, 10, 0.7);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--colorRojo);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.media-card:hover {
    box-shadow: 0 10px 5px rgba(232, 48, 40, 0.5);
    background-color: rgba(10, 10, 10, 0.9);
}

.media-card img {
    max-width: 300px;
    max-height: 150px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.media-card:hover img {
    transform: scale(1.05);
}

.media-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--fontSecondary);
    color: var(--colorBlanco);
    text-align: center;
    transition: color 0.3s ease;
}

.media-card:hover .media-label {
    color: var(--colorRojo);
}

.hero-character {
    position: absolute;
    bottom: 0;
    left: 32%;
    height: 75%;
    object-fit: contain;
    object-position: bottom;
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(40, 117, 232, 0.7));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateZ(0); }
    50% { transform: translateZ(-15px); }
}

/* Gallery Section */
.gallery-container {
    padding: 2rem;
    background-color: var(--colorNegro);
    position: relative;
}

.gallery-title{
    font-family: var(--fontPrimary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--colorBlanco);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.gallery-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--colorRojo);
    margin: 15px auto;
}

.gallery-grid {
    columns: 3 500px;
    column-gap: 1rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative; /* Added this */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 48, 40, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.image-title {
    font-family: var(--fontPrimary);
    color: var(--colorBlanco);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--colorNegro);
}

.image-desc {
    font-family: var(--fontSecondary);
    color: var(--colorBlanco);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-button {
    background: var(--colorRojo);
    color: var(--colorBlanco);
    border: none;
    padding: 8px 20px;
    font-family: var(--fontPrimary);
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-button:hover {
    background: var(--colorBlanco);
    color: var(--colorRojo);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(232, 48, 40, 0.7);
}


/* Footer */
footer {
    background: var(--colorNegro);
    padding: 80px 20px 30px;
    color: var(--colorBlanco);
    position: relative;
    overflow: hidden;   
    border-top: 3px solid var(--colorRojo);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="%23E83028" stroke-width="0.3" d="M50,0 C60,20 70,30 50,50 C30,70 20,80 0,50 C-20,20 -30,10 -10,-10 C10,-30 20,-40 50,0 Z" transform="rotate(45 50 50)"/></svg>');
    opacity: 0.05;
    z-index: 1;
    animation: spiralRotate 80s linear infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-about {
    padding-right: 20px;
}

.footer-about h3 {
    font-family: var(--fontPrimary);
    color: var(--colorRojo);
    margin-top: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-about h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--colorRojo);
}

.anime-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: var(--fontPrimary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--colorRojo);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-logo {
    font-family: var(--fontPrimary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--colorRojo);
    margin-bottom: 20px;
}

.footer-logo:hover {
    text-shadow: 0 0 10px var(--colorRojo);
    transition: text-shadow 0.3s ease;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h3{
    font-family: var(--fontPrimary);
    color: var(--colorRojo);
    margin-top: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--colorRojo);
}

.footer-links a {
    color: var(--colorBlanco);
    text-decoration: none;
    font-family: var(--fontSecondary);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0 8px 20px;
    margin-left: -20px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--colorRojo);
    background: rgba(232, 48, 40, 0.1);
    padding-left: 25px;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 5px;
    color: var(--colorRojo);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 10px;
}

.newsletter {
    background: rgba(34, 34, 34, 0.7);
    padding: 20px;
    border-radius: 10px;
    border-top: 3px solid var(--colorRojo);
}

.newsletter:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(232, 48, 40, 0.3);
    transition: all 0.3s ease;
}

.newsletter h3 {
    font-family: var(--fontPrimary);
    color: var(--colorBlanco);
    text-shadow: 0 0 10px var(--colorAzul), 0 0 20px var(--colorAzul);
    margin-top: 0;
}

.newsletter p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--colorBlanco);
    border-bottom: 2px solid var(--colorRojo);
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter button {
    background: var(--colorRojo);
    color: var(--colorBlanco);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-family: var(--fontPrimary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: var(--colorBlanco);
    color: var(--colorRojo);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   CUSTOM SCROLLBAR
========================================= */

::-webkit-scrollbar{
  width:6px;
}

::-webkit-scrollbar-track{
  background:#050505;
}

::-webkit-scrollbar-thumb{

  background:#AAFF00;

  border-radius:999px;

  box-shadow:
    0 0 10px rgba(170,255,0,.5);

}

::-webkit-scrollbar-thumb:hover{
  background:#d9ff7a;
}

/* Firefox */

*{
  scrollbar-width:thin;
  scrollbar-color:#AAFF00 #050505;
}


/* =========================================================
   RESPONSIVE — GALLERY PAGE
   Fixed: navbar grid→flex, hero-content right offset
   overflow, hero-character overlap at 900-1280px,
   gallery columns at small screens
========================================================= */

/* ── 1440px: hero-content right:10% starts causing layout
   shift; reduce the offset progressively ── */
@media (max-width: 1440px) {
    .hero-content {
        right: 5%;
    }
    .hero-character {
        left: 35%;
        height: 72%;
    }
}

/* ── 1280px: right offset still causes content cut-off ── */
@media (max-width: 1280px) {
    .navbar {
        padding: 0 24px;
    }
    .nav-links {
        gap: 28px;
    }
    .hero-content {
        right: 0;
        padding: 0 4%;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-title .highlight {
        font-size: 4rem;
    }
    .hero-character {
        left: 38%;
        height: 68%;
        opacity: 0.85;
    }
}

/* ── 1024px: navbar gets tight; character starts visually
   overlapping the description text ── */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }
    .logo {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .join-btn {
        padding: 10px 18px;
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-title .highlight {
        font-size: 3.5rem;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 480px;
    }
    /* Push character right and reduce, so text has breathing room */
    .hero-character {
        left: auto;
        right: 0;
        height: 65%;
        opacity: 0.7;
    }
    .gallery-grid {
        columns: 2 300px;
    }
}

/* ── 768px: switch navbar from grid to flex ── */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }
    .logo {
        font-size: 1.2rem;
        order: 1;
        flex: 1;
    }
    .join-btn {
        order: 2;
        padding: 8px 14px;
        font-size: 0.72rem;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
    .nav-link {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-title .highlight {
        font-size: 3.5rem;
    }
    /* Character semi-transparent on the right; text reads clearly */
    .hero-character {
        right: -30px;
        left: auto;
        height: 60%;
        opacity: 0.5;
    }
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
    blockquote {
        font-size: 1.5rem;
    }
    .gallery-grid {
        columns: 2 280px;
    }
}

/* ── 600px ── */
@media (max-width: 600px) {
    blockquote::after {
        bottom: -30px;
    }
    .media-preview {
        gap: 1rem;
    }
    .media-card {
        min-width: 200px;
    }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 14px;
    }
    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    .join-btn {
        padding: 7px 11px;
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-title .highlight {
        font-size: 3rem;
    }
    /* At this size, the character covers important content — hide */
    .hero-character {
        display: none;
    }
    .media-card {
        min-width: 180px;
    }
    .gallery-grid {
        columns: 1;
    }
}