@import url('../../../static/css/components/buttons.css');

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

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    background-color: var(--dark-background);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 70%;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo .logo {
    width: auto;
    height: 90px;
}

.nav-logo .site-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light-text);
}

.btn {
    padding: 0.2rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem 2rem;
    background-color: var(--background);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 0rem 2rem;
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e5e5;
    border-bottom: 3px solid var(--primary);
    cursor: default;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    box-shadow: none;
    transform: none;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    margin-left: 0;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #e0e0e0;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.feature-status {
    padding: 0.3rem 0;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
    letter-spacing: 0.5px;
    border-bottom: 2px solid;
}

.feature-status.available {
    background-color: transparent;
    color: #0fa958;
    border-color: #0fa958;
}

.feature-status.coming-soon {
    background-color: transparent;
    color: #2d7cc1;
    border-color: #2d7cc1;
}

.coming-soon {
    position: relative;
    opacity: 0.8;
}

/* How it works section */
.how-it-works {
    padding: 4rem 2rem;
    background-color: white;
}

.steps {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.step p {
    font-size: 1rem;
    color: var(--text);
}

/* Footer simplificado con flexbox */
footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 2rem 2rem;
    margin-top: 2rem;
    gap: 4rem;
    background-color: var(--secondary);
    color: var(--text);
    border-top: 1px solid var(--accent);
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: static; /* Cambiamos de fixed a static */
        margin-right: 1rem;
        z-index: 1000;
    }

    .nav-content {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100vh;
        width: 250px;
        background-color: var(--dark-background);
        padding: 4rem 1rem;
        transition: left 0.3s ease;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav-content.active {
        left: 0;
    }

    nav {
        padding: 0.5rem 1rem;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-left, .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-right {
        gap: 0;
    }

    .nav-logo {
        flex-direction: row;
        margin: 0;
        gap: 0.5rem;
    }

    .nav-logo .logo {
        height: 40px;
    }

    .nav-logo .site-name {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .hero-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        gap: 1rem;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        margin: 1rem 0;
        min-width: auto;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

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

    .footer-section li {
        margin-bottom: 0.75rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section a {
        padding: 0.5rem 0;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 1rem;
    }

    .nav-logo .logo {
        height: 70px;
    }

    .nav-logo .site-name {
        font-size: 1.3rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.2rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-section {
        min-width: 200px;
        margin: 0 0.5rem 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}