/* Importar fuente Satoshi */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400&display=swap');

/* Reset y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #00ff88;
}

.btn-signin {
    padding: 0.5rem 1.5rem;
    border: 1px solid #00ff88;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background-color: rgba(0, 255, 136, 0.1);
}

.btn-signup {
    padding: 0.5rem 1.5rem;
    background-color: #00ff88;
    color: #121212 !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background-color: #00dd77;
    color: #121212 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 180px 2rem 120px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 2rem;
    color: #00ff88;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Cards Section */
.cards-section {
    padding: 60px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
}

.card:hover::before {
    opacity: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-large {
    grid-column: span 2;
    min-height: 450px;
}

.card-medium {
    min-height: 320px;
}

.card-small {
    min-height: 280px;
}

/* DucleJS Section */
.duclejs-section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.duclejs-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.duclejs-text {
    padding-left: 5%;
}

.duclejs-text h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.duclejs-text p {
    font-size: 1.3rem;
    color: #999999;
    font-weight: 400;
}

.duclejs-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.lang-icon {
    width: 70px;
    height: 70px;
    background-color: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    position: relative;
}

.lang-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #2a2a2a;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
}

.lang-icon:hover::before {
    opacity: 1;
}

.lang-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 3rem 2rem 1.5rem;
    margin-top: 100px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a2a 20%, #2a2a2a 80%, transparent);
    margin-bottom: 2.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo img {
    width: 160px;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    background-color: #2a2a2a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icon:hover {
    background-color: #00ff88;
    color: #121212;
    transform: translateY(-3px);
    border-color: #00ff88;
    box-shadow: 0 8px 16px rgba(0, 255, 136, 0.3);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-right {
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-column ul li a:hover {
    color: #00ff88;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.copyright {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

.emoji {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.emoji:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .duclejs-content {
        flex-direction: column;
        text-align: center;
    }

    .duclejs-text {
        padding-left: 0;
    }

    .duclejs-icons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .card-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid #2a2a2a;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 140px 2rem 80px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
        min-height: 300px;
    }

    .card-medium,
    .card-small {
        min-height: 250px;
    }

    .duclejs-text h2 {
        font-size: 2rem;
    }

    .duclejs-text p {
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .duclejs-icons {
        gap: 1rem;
    }

    .lang-icon {
        width: 60px;
        height: 60px;
    }

    .lang-icon img {
        width: 35px;
        height: 35px;
    }
}