:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --accent-gradient: linear-gradient(135deg, #9D50BB 0%, #6E48AA 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background: var(--bg-color);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Buttons */
.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 114, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 114, 255, 0);
    }
}

@keyframes float-3d {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    margin-top: 6rem;
    /* Subido de 8rem si lo hubiera, pero era 4rem? */
}

.badge {
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    color: #00C6FF;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Showcase Section */
.showcase-section {
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    margin-top: -5rem;
    /* Overlap hero */
}

.mockup-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.app-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    /* Deeper shadow for 3D feel */
    border: 1px solid var(--glass-border);
    animation: float-3d 6s ease-in-out infinite;
    /* Apply 3D float */
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--primary-gradient);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

/* Features Section */
.features-section {
    padding: 6rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    /* Removed default transform transition as JS handles it for 3D */
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Removed hover transform as JS handles it */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-fa-icon {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 1rem;
    background: radial-gradient(circle at bottom right, rgba(157, 80, 187, 0.1), transparent 50%);
}

.pricing-card.featured {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(0, 198, 255, 0.3);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.currency {
    font-size: 2rem;
    margin-top: 10px;
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 10px;
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #00C6FF;
    margin-right: 1rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

.scarcity-text {
    text-align: center;
    color: #F87171;
    /* Light red */
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Comparison Section */
.comparison-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
}

.competitor-col {
    color: var(--text-secondary);
}

.autonomoia-col {
    color: #00C6FF;
    font-size: 1.2rem;
    background: rgba(0, 198, 255, 0.05);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.highlight-cell {
    color: #fff;
    font-weight: 700;
    background: rgba(0, 198, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.05);
}

.comparison-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.small-note {
    font-size: 0.9rem;
    color: #00C6FF;
    margin-top: 0.5rem;
}

/* Responsive */


.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.login-link {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .hero {
        align-items: center !important;
        padding-top: 150px !important;
        /* Increased to account for taller header + spacing */
        padding-bottom: 4rem !important;
        min-height: 100vh !important;
        text-align: center !important;
    }

    .hero-content {
        margin-top: 2rem !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem;
    }

    /* Typography Harmony */
    .hero h1 {
        font-size: 2.8rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.15 !important;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.15rem !important;
        line-height: 1.5;
        margin-bottom: 2.5rem !important;
        max-width: 90%;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .badge {
        font-size: 0.85rem !important;
        padding: 0.5rem 1.2rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 0.5px;
        background: rgba(0, 198, 255, 0.08);
        border: 1px solid rgba(0, 198, 255, 0.2);
    }

    /* Navigation Mobile */
    /* Navigation Mobile - Grid Layout */
    .glass-nav {
        padding: 0.8rem 1.5rem !important;
        background: rgba(5, 5, 5, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        /* Grid Magic */
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        /* One column for Logo, one for Login */
        grid-template-rows: auto auto !important;
        /* Top row, Bottom row */
        gap: 1rem 0 !important;
        /* Gap between rows */
        justify-content: space-between !important;
    }

    .logo {
        font-size: 1.4rem !important;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-self: start;
    }

    .nav-actions {
        display: contents !important;
        /* Unwrap the container to let children participate in grid */
    }

    .glass-nav .login-link {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: center;
        margin-right: 0 !important;
        font-size: 0.95rem !important;
    }

    .glass-nav .cta-button {
        grid-column: 1 / -1;
        /* Span full width */
        grid-row: 2 / 3;
        width: auto !important;
        justify-self: center !important;
        margin-top: 1rem !important;
        display: inline-block !important;
        min-width: 200px;
        padding: 0.8rem 2rem !important;
    }

    .nav-actions {
        /* Remove old flex rules */
        display: contents !important;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }

    .secondary-button {
        display: none;
        /* Simplify mobile actions */
    }

    .mobile-only-show {
        display: block !important;
    }
}

/* PWA Install Banner - Floating Glass Island */
.pwa-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 16px 20px;
    z-index: 2000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: pwaSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pwaSlideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-content img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: white;
    padding: 2px;
}

.pwa-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-text strong {
    color: white;
    font-size: 0.95rem;
    display: block;
}

.pwa-text span {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.ios-instructions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 0.85rem;
    text-align: center;
}


/* MOBILE OVERRIDE v4.0 - FORCE NEW DESIGN */
@media (max-width: 900px) {
    body {
        background: linear-gradient(-45deg, #050505, #0f172a, #1e1b4b, #000000) !important;
        background-size: 400% 400% !important;
        animation: gradientBG 15s ease infinite !important;
        min-height: 100dvh !important;
    }

    .hero-bg-container {
        display: block !important;
    }

    .hero-bg-img {
        opacity: 0.4 !important;
        /* Slightly darker on mobile for text readability */
        object-position: center top;
    }

    .hero {
        background: transparent !important;
    }
}

.ios-instructions strong {
    color: #3b82f6;
}