:root {
    --bg-color: #0f1115;
    --text-color: #ffffff;
    --accent-color: #FFD700; /* Amarillo Construcción */
    --secondary-color: #2a2e35;
    --blue-accent: #4a90e2;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
    opacity: 0; 
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.dot {
    color: var(--accent-color);
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    position: relative;
    z-index: 5;
}

.content {
    max-width: 50%;
}

.line-wrapper {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    transform: translateY(100%);
}

.description {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 450px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.cta-container {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.primary-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

/* Abstract Construction Visuals (Hero) */
.visual-abstract {
    position: relative;
    width: 400px;
    height: 400px;
}

.block {
    position: absolute;
    background: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.b1 { width: 150px; height: 300px; right: 0; bottom: 0; background: #1a1d23; z-index: 1; }
.b2 { width: 250px; height: 150px; right: 50px; bottom: 50px; background: #23272e; z-index: 2; }
.b3 { width: 100px; height: 100px; right: 200px; bottom: 150px; background: var(--blue-accent); z-index: 3; opacity: 0.8; }

/* Features Section */
.features {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b0c10;
    position: relative;
    padding: 4rem;
}

.features-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.building-stage {
    width: 400px;
    height: 400px;
    position: relative;
    flex-shrink: 0; /* Evitar que se aplaste */
}

/* House Parts */
.house-part {
    position: absolute;
    background: var(--secondary-color);
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floor { width: 300px; height: 10px; bottom: 50px; left: 50px; background: #3a3f4b; }
.walls { width: 200px; height: 180px; bottom: 60px; left: 100px; background: #1a1d23; border: 1px solid rgba(255,255,255,0.05); }
.roof {
    width: 0; height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 80px solid var(--accent-color);
    bottom: 240px; left: 80px;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

.window-left, .window-right {
    width: 40px; height: 60px;
    background: #2a3b55;
    bottom: 140px;
    border: 1px solid rgba(255,255,255,0.1);
}
.window-left { left: 130px; }
.window-right { left: 230px; }

.door {
    width: 50px; height: 80px;
    bottom: 60px; left: 175px;
    background: #0f1115;
    border-top: 2px solid var(--accent-color);
}

.coin-flow {
    position: absolute; width: 20px; height: 20px;
    background: var(--accent-color); border-radius: 50%;
    top: 50%; left: 50%; opacity: 0;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Features List */
.features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    opacity: 0;
    transform: translateY(20px);
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 1.5rem;
    transition: border-color 0.3s;
}

.feature-item.active { border-left-color: var(--accent-color); }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
.feature-item p { color: #888; line-height: 1.5; }

/* Grid Background */
.grid-container {
    position: absolute; top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    z-index: 0; pointer-events: none;
}
.grid-item { border-right: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); opacity: 0; }


/* --- RESPONSIVE / MOBILE STYLES --- */
@media (max-width: 768px) {
    
    /* General Padding */
    nav, .hero, .features {
        padding: 1.5rem;
    }

    /* Navbar */
    nav {
        padding: 1.5rem 2rem;
    }
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        flex-direction: column; 
        justify-content: center;
        gap: 3rem;
        padding-top: 6rem; /* Espacio para el nav */
    }

    .content {
        max-width: 100%;
        text-align: center;
        z-index: 10;
    }

    h1 {
        font-size: 2.8rem; /* Mucho más chico */
    }

    .description {
        margin: 1.5rem auto; /* Centrado */
        font-size: 1rem;
    }

    .cta-container {
        justify-content: center;
    }

    .visual-abstract {
        width: 300px; /* Reducir */
        height: 300px;
        transform: scale(0.8); /* Escalar para asegurar ajuste */
    }

    /* Features */
    .features-container {
        flex-direction: column;
        gap: 2rem;
    }

    .building-stage {
        /* El container original es 400x400. En móvil no cabe. Lo escalamos. */
        transform: scale(0.7); 
        margin-bottom: -50px; /* Compensar el espacio vacío que deja el scale */
        margin-top: -50px;
    }

    .features-list {
        width: 100%;
    }

    .feature-item {
        text-align: left;
        padding-left: 1rem;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
}