/* Custom Font - Minecraftia */
@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/minecraftia/Minecraftia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minecraft End Theme - Mysterious and Dark */
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --ender-cyan: #00ffff;
    --dragon-gold: #fbbf24;
    --end-purple: #6d28d9;
    --obsidian-black: #0a0a0f;
    --void-black: #030304;
    --dark-bg: #0a0a0f;
    --darker-bg: #030304;
    --glass-bg: rgba(109, 40, 217, 0.1);
    --glass-border: rgba(139, 92, 246, 0.2);
    --text-primary: #e0e0ff;
    --text-secondary: #a78bfa;
    --glow-cyan: rgba(0, 255, 255, 0.3);
    --glow-purple: rgba(139, 92, 246, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

.hero-content {
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow:
        0 0 3px rgba(139, 92, 246, 1),
        0 0 6px rgba(139, 92, 246, 0.5),
        0 3px 5px rgba(0, 0, 0, 1),
        0 5px 10px rgba(0, 0, 0, 0.9),
        0 8px 15px rgba(0, 0, 0, 0.8),
        0 12px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    letter-spacing: 4px;
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Button Styles - Minecraft Style */
.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
    border: none;
    border-radius: 0;
    cursor: pointer;
    overflow: visible;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    /* Bordes tipo bisel - luz arriba/izquierda, sombra abajo/derecha */
    border-top: 4px solid rgba(167, 139, 250, 0.5);
    border-left: 4px solid rgba(167, 139, 250, 0.5);
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
    border-right: 4px solid rgba(0, 0, 0, 0.8);
    /* Sombra exterior para profundidad con brillo End */
    box-shadow:
        0 8px 0 0 #1e1b4b,
        0 8px 16px 0 rgba(139, 92, 246, 0.4);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.btn-secondary {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #000000 100%);
    color: #c084fc;
    border-top: 4px solid rgba(192, 132, 252, 0.3);
    border-left: 4px solid rgba(192, 132, 252, 0.3);
    box-shadow:
        0 8px 0 0 #000000,
        0 8px 16px 0 rgba(192, 132, 252, 0.3);
}

.btn-primary::before,
.btn-secondary::before {
    display: none;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
    transform: translateY(0px);
    /* Iluminar bordes superiores en hover con brillo púrpura */
    border-top: 4px solid rgba(167, 139, 250, 0.8);
    border-left: 4px solid rgba(167, 139, 250, 0.8);
    box-shadow:
        0 8px 0 0 #1e1b4b,
        0 8px 16px 0 rgba(139, 92, 246, 0.6),
        0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #262626 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e9d5ff;
    box-shadow:
        0 8px 0 0 #000000,
        0 8px 16px 0 rgba(192, 132, 252, 0.6),
        0 0 20px rgba(192, 132, 252, 0.4);
    border-top: 4px solid rgba(192, 132, 252, 0.5);
    border-left: 4px solid rgba(192, 132, 252, 0.5);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(6px);
    /* Invertir bordes al presionar para efecto "hundido" */
    border-top: 4px solid rgba(0, 0, 0, 0.8);
    border-left: 4px solid rgba(0, 0, 0, 0.8);
    border-bottom: 4px solid rgba(167, 139, 250, 0.3);
    border-right: 4px solid rgba(167, 139, 250, 0.3);
    /* Reducir sombra al presionar */
    box-shadow:
        0 2px 0 0 #1e1b4b,
        0 2px 4px 0 rgba(139, 92, 246, 0.3);
}

.btn-secondary:active {
    box-shadow:
        0 2px 0 0 #000000,
        0 2px 4px 0 rgba(192, 132, 252, 0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Hero section should be visible on load */
section.hero {
    opacity: 1;
    transform: translateY(0);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tutorial Section */
.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    font-family: 'Minecraftia', cursive;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Content Styles for Historia and Normas */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.content-subtitle {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin: 40px 0 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.rules-list {
    list-style: none;
    counter-reset: rule-counter;
}

.rules-list li {
    counter-increment: rule-counter;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
    padding-left: 70px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background: var(--primary-gradient);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    transform: translateX(400px);
    transition: transform 0.5s ease;
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

/* Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 25px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .rules-list li {
        padding-left: 20px;
        padding-top: 60px;
    }

    .rules-list li::before {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator::before {
    content: '⬇';
    font-size: 2rem;
    color: var(--text-secondary);
}

/* Custom backgrounds for each page */
/* Default: index uses background.png (already defined above) */

/* Historia page - replace 'background-historia.png' with your own image */
body.historia .hero-background {
    background-image: url('../img/historia.jpg');
}

/* Normas page - replace 'background-normas.png' with your own image */
body.normas .hero-background {
    background-image: url('../img/background-normas.png');
}

/* Pagos page - replace 'background-pagos.png' with your own image */
body.pagos .hero-background {
    background-image: url('../img/pagos.jpg');
}

/* Payment Page Specific Styles */
.payment-intro {
    text-align: center;
    margin-bottom: 60px;
}

.payment-methods {
    margin: 60px 0;
}

.payment-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-5px);
}

.payment-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.payment-method-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.qr-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    min-width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.phone-number-container {
    margin: 30px 0;
}

.phone-number-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.2));
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Minecraftia', cursive;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-section {
    margin: 60px 0;
    text-align: center;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    margin: 30px auto;
}

.price-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.currency {
    font-size: 2rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Minecraftia', cursive;
}

.period {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

.payment-instructions {
    margin: 60px 0;
}

.instructions-list {
    list-style: none;
    counter-reset: instruction-counter;
    margin-top: 30px;
}

.instructions-list li {
    counter-increment: instruction-counter;
    padding: 20px;
    padding-left: 70px;
    margin-bottom: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.instructions-list li:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.instructions-list li::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.btn-primary svg,
.btn-secondary svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.payment-faq {
    margin: 60px 0;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
}

.faq-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
}