/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e4e4e4;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #8892b0;
}

/* Roulette button in header */
.roulette-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 107, 107, 0.3);
    animation: pulse-btn 2s ease infinite;
}

.roulette-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 5px 25px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 5px 35px rgba(254, 202, 87, 0.5); }
}

/* Intro section */
.intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #a8b2d1;
}

/* Grid de items */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.item-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #e4e4e4;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.3);
}

.item-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.item-icon img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.item-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #5a6a8a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== ESTILOS PARA PÁGINAS DE ITEMS ========== */

.item-page {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00d9ff;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateX(-5px);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-header .icon {
    font-size: 4rem;
    min-width: 120px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-header .icon img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.item-header h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Secciones */
.section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section h2 {
    color: #00d9ff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #00d9ff, #00ff88);
    border-radius: 2px;
}

.section p {
    color: #a8b2d1;
    line-height: 1.8;
}

/* Lista de pasos */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 15px 15px 15px 60px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    color: #c8d0e7;
    transition: all 0.3s ease;
}

.steps-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a1a2e;
    font-size: 0.9rem;
}

/* Tip box */
.tip-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-left: 4px solid #ffc107;
    padding: 20px 25px;
    border-radius: 0 15px 15px 0;
    margin-top: 10px;
}

.tip-box h3 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p {
    color: #d4c8a8;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .item-card {
        padding: 20px 10px;
    }

    .item-icon {
        font-size: 2rem;
    }

    .item-header {
        flex-direction: column;
        text-align: center;
    }

    .item-header h1 {
        font-size: 1.6rem;
    }

    .section {
        padding: 20px;
    }

    .steps-list li {
        padding-left: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 25px 15px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
