/* Index Styles - Premium Access Gate (Redesigned) */
:root {
    --bg-deep: #0a0a0a;
    --section-bg: #111111;
    --card-bg-alt: #141414;
    --border-subtle: #2a2a2a;
    --accent-glow: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: absolute; /* Relative to page */
    width: 100%;
    top: 0;
    box-sizing: border-box;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

/* Base section padding */
section {
    padding: 6rem 2rem;
    position: relative;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Offset header */
    background-color: var(--bg-deep);
    overflow: hidden;
    position: relative;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85; /* Aumentado para que la galaxia brille */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-deep) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.btn-entry {
    background: #fff;
    color: #000;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.btn-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
}

.btn-secondary-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-secondary-link:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

.stat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -1px;
}

/* HOW IT WORKS */
.how-it-works-section {
    background-color: var(--section-bg);
    border-top: 1px solid var(--border-subtle);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.active-status {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.deploy-status {
    background: rgba(0, 136, 255, 0.1);
    color: #0088ff;
    border: 1px solid rgba(0, 136, 255, 0.2);
}

.pending-status {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--border-subtle);
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0.3;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.classified-text {
    color: var(--text-secondary);
    line-height: 1.6;
    filter: blur(1.5px);
    transition: filter 0.3s ease;
    user-select: none;
}

.step-card:hover .classified-text {
    filter: blur(0);
}

/* SOCIAL PROOF */
.social-proof-section {
    background-color: var(--bg-deep);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blurred-comment {
    filter: blur(10px);
    user-select: none;
    opacity: 0.6;
}

.author {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* PRICING */
.pricing-section {
    background-color: var(--section-bg);
    border-top: 1px solid var(--border-subtle);
}

.pricing-title {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.price-card {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #555;
}

.price-card.premium {
    border: 1px solid #666;
    background: linear-gradient(180deg, #1a1a1a 0%, var(--card-bg-alt) 100%);
    box-shadow: 0 10px 40px rgba(255,255,255,0.03);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 99px;
    letter-spacing: 1px;
}

.price-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.price span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0;
}

.features-list {
    list-style: none;
    margin: 0 0 2.5rem 0;
    padding: 0;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.features-list li svg {
    width: 20px;
    height: 20px;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-subscribe {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-color);
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-subscribe:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

.btn-subscribe-premium {
    background: #fff;
    color: #000;
    border: none;
}

.btn-subscribe-premium:hover {
    background: #e0e0e0;
}

/* FINAL CTA */
.final-cta-section {
    background-color: var(--bg-deep);
    text-align: center;
    padding: 8rem 2rem;
}

.final-cta-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.final-cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Login Modal */
.login-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-card {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #666;
}

.btn-login {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.error-msg {
    color: #ff4444;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* RESPONSIVE - All Breakpoints */

/* Tablet & smaller laptops */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pricing-title h2 {
        font-size: 2.5rem;
    }

    .final-cta-section h2 {
        font-size: 2.5rem;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .steps-grid, .testimonials-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .final-cta-section h2 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-entry {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.2rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .main-logo {
        width: 32px;
        height: 32px;
    }

    section {
        padding: 3rem 1.2rem;
    }

    .hero-section {
        padding-top: 80px;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 7vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .step-card,
    .testimonial-card,
    .price-card {
        padding: 2rem 1.5rem;
    }

    .final-cta-section {
        padding: 4rem 1.2rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 0.5rem;
    }

    .login-section {
        padding: 1rem;
    }

    .price {
        font-size: 2.8rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .stat span {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .final-cta-section h2 {
        font-size: 1.8rem;
    }
}

/* iPhone SE / very small */
@media (max-width: 390px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .badge {
        font-size: 0.65rem;
    }

    .btn-entry {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }
}
