/* Modern Dark Premium Theme */
:root {
    --bg-color: #050510;
    --bg-dark-accent: #0f1025;
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #818cf8;
    --accent: #a5b4fc;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --nav-glass: rgba(5, 5, 16, 0.7);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #c084fc);
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Cube Scaling */
    --cube-size: 200px;
    --cube-size-overlap: 201px;
    --cube-z: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blurs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 15s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #4f46e5;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: #7c3aed;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #2563eb;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--text-color);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--nav-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.logo .accent {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--secondary);
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title-img {
    max-width: 80%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    /* Cube sizing variables */
    --cube-size: 200px;
    --cube-size-overlap: 201px;
    --cube-z: 100px;
}

.scene {
    width: var(--cube-size);
    height: var(--cube-size);
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.cube:active {
    cursor: grabbing;
}

.face {
    position: absolute;
    width: var(--cube-size-overlap);
    /* Slightly larger to prevent gaps */
    height: var(--cube-size-overlap);
    background-size: cover;
    image-rendering: pixelated;
    pointer-events: none;
    /* Let clicks pass through to container */
    backface-visibility: visible;
}

.top {
    background-image: url('block/grass_block_top.png');
    transform: rotateX(90deg) translateZ(var(--cube-z));
}

.bottom {
    background-image: url('block/grass_block_bottom.png');
    transform: rotateX(-90deg) translateZ(var(--cube-z));
}

.front {
    background-image: url('block/grass_block_side.png');
    transform: rotateY(0deg) translateZ(var(--cube-z));
}

.back {
    background-image: url('block/grass_block_side.png');
    transform: rotateY(180deg) translateZ(var(--cube-z));
}

.left {
    background-image: url('block/grass_block_side.png');
    transform: rotateY(-90deg) translateZ(var(--cube-z));
}

.right {
    background-image: url('block/grass_block_side.png');
    transform: rotateY(90deg) translateZ(var(--cube-z));
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Carousel */
.screenshots {
    padding-bottom: 8rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Mantener siempre 16:9 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.carousel-track-container {
    height: 100%;
    position: relative;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.current-slide {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    cursor: pointer;
    transition: .3s;
}

.carousel-indicator.current-slide {
    background: var(--primary);
    transform: scale(1.2);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 4rem 2rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    background: rgba(5, 5, 16, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Tablet & Large Mobile */
@media (max-width: 1024px) {
    :root {
        --cube-size: 160px;
        --cube-size-overlap: 161px;
        --cube-z: 80px;
    }

    .container {
        width: 95%;
    }

    .hero-content {
        gap: 2rem;
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-visual {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links,
    .sm-hidden {
        display: none;
    }

    .hero {
        padding-top: 8rem;
        /* Más espacio para el nav fix */
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }

    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
        min-height: 250px;
        margin-bottom: 2rem;
        /* Forzar visibilidad del cubo */
        --cube-size: 150px;
        --cube-size-overlap: 151px;
        --cube-z: 75px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .lead {
        margin: 0 auto 2.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 7rem;
    }

    .hero-visual {
        --cube-size: 130px;
        --cube-size-overlap: 131px;
        --cube-z: 65px;
        min-height: 200px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .caption {
        font-size: 1.1rem;
        padding: 2rem 1rem 1rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-dark-accent) 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}