/* ================================
   COMPONENTE: PÁGINA INDEX
   ================================ */

body.index-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 0;
}

/* #region ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-bio), var(--accent-crystal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
    padding: 0;
}

.version-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;  
}

.version-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-psi), var(--accent-crystal));
    color: white !important;
    -webkit-text-fill-color: white !important;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
/* #endregion */

/* #region ===== CATEGORÍAS ===== */
.section-category {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 3rem;
}

.category-title {
    color: var(--accent-bio);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent-bio);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}
/* #endregion */

/* #region ===== CARDS ===== */
.section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease backwards;
}

.section-card:nth-child(1) { animation-delay: 0.05s; }
.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.15s; }
.section-card:nth-child(4) { animation-delay: 0.2s; }
.section-card:nth-child(5) { animation-delay: 0.25s; }
.section-card:nth-child(6) { animation-delay: 0.3s; }

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.section-card:hover::before {
    left: 100%;
}

.section-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-bio);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-crystal);
    opacity: 0.5;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    color: var(--accent-crystal);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent-bio);
}

.card-status.wip {
    color: var(--accent-tech);
}

.card-status.new {
    color: var(--accent-chem);
    animation: pulse 2s infinite;
}
/* #endregion */
.info-grid{
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 1rem;
  width: 100%;
}


/* #region ===== FOOTER ===== */
.game-footer {
    margin-top: auto;
    padding-top: 4rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-content {
    /*max-width: 1200px;*/
    margin: 0 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(18, 24, 37, 0.9), rgba(26, 35, 50, 0.9));
    border-radius: 20px 20px 0 0;
    border-top: 2px solid var(--accent-bio);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, var(--accent-bio), var(--accent-crystal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.7;
}

.footer-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bio), transparent);
    margin: 1.5rem auto;
}

.footer-text {
    color: var(--accent-bio);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
}
/* #endregion */

/* #region ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: 1.5rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
}
/* #endregion */

/* Efecto de partículas de fondo */
body.index-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Logo Container */
.logo-container {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0 auto 0rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efecto glow del logo */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Logo */
.game-logo {
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.5));
    position: relative;
    z-index: 1;
    animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Título del juego */
.game-title {
    font-size: 3.5rem;
    margin: 1rem 0;
    text-align: center;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    position:relative;
}

.title-main {
    display: block;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #4ade80, #60a5fa, #4ade80);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header mejorado */
.header {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.header h1 {
    border: none;
    padding: 0;
}

.date-text {
    color: var(--accent-crystal);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Version badge actualizado */
.version-badge {
position: absolute;
  right: -70%;
  top: 64%;
    
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Progress Section centrada */
.progress-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: rgba(18, 24, 37, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.progress-section h3 {
    color: var(--accent-bio);
    margin-bottom: 1rem;
    margin-top: 0rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-secondary));
    height: 35px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-bio), var(--accent-crystal));
    height: 100%;
    width: 30%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: progress-shine 2s ease-in-out infinite;
    margin:auto;
}

@keyframes progress-shine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

.progress-text {
    color: black;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Categorías centradas */
.section-category {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.category-title {
    color: var(--accent-bio);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-bio);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid centrado */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0 auto 1rem;
    width: 100%;
}

/* Info section centrada */
.info-section {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(18, 24, 37, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Cards con efecto hover mejorado */
.section-card {
    background: rgba(18, 24, 37, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.section-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-bio), var(--accent-crystal), var(--accent-psi));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.section-card:hover::after {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        width: 150px;
        height: 150px;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}