:root {
    /* Brand Colors */
    --bg-primary: #080A0C;
    --bg-secondary: #0D1117;
    --accent-azure: #00D1FF;
    --accent-glow: rgba(0, 209, 255, 0.4);
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;

    /* Layout Constants */
    --container-max-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Branding from Proyecto 1 */
    --font-heading: 'Montserrat', sans-serif;
    --color-accent-mint: #66CCCC;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: var(--font-heading);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

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

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 300;
}

.text-accent {
    color: var(--accent-azure);
    text-shadow: 0 0 20px var(--accent-glow);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-mint) 0%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Header & Navigation */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 10, 12, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo-flow {
    font-weight: 700;
    color: var(--text-main);
}

.logo-simply {
    font-weight: 300;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Header Action Button - Premium Minimalist */
.nav-links .btn-primary {
    background-color: #ffffff;
    color: var(--text-muted);
    border: 1px solid #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
}

.nav-links .btn-primary:hover {
    background-color: var(--bg-primary);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button - Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-azure);
    color: #000;
}

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

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video,
.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.glow-sphere {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-azure) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.2;
    position: absolute;
    z-index: 1;
    animation: drift 10s infinite alternate ease-in-out;
}

.abstract-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
}

/* Social Proof */
.social-proof {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

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

.stat-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-azure);
    margin-bottom: 1rem;
}

/* Bento Showcase */
.showcase {
    padding: 8rem 2rem;
}

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

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-item:hover {
    border-color: var(--accent-azure);
    background: rgba(0, 209, 255, 0.02);
}

.bento-large {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-azure) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #0d1117 0%, #080a0c 100%);
    border: 1px solid rgba(0, 209, 255, 0.2);
    padding: 6rem 4rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
@keyframes drift {
    from {
        transform: translate(-5%, -5%);
    }

    to {
        transform: translate(5%, 5%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-main {
    flex: 1;
    padding-top: 150px;
}

.contact-grid {
    display: none;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-block {
    max-width: 600px;
    margin: 0 auto;
}

/* Extra styles for the new 'Problem' section */
.problem-section {
    background: var(--bg-secondary);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: left;
}

.problem-item {
    background: rgba(255, 100, 100, 0.05);
    border-left: 4px solid #ff6b6b;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.problem-solution {
    background: rgba(102, 204, 204, 0.1);
    border-left: 4px solid var(--color-accent-mint);
    padding: 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .main-header nav {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero Buttons Responsive Stacking */
    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .hero-actions .btn {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    /* Additional Mobile Specific Adjustments */
    .contact-main {
        padding-top: 100px;
    }

    .contact-info {
        text-align: left !important;
        padding: 0 1rem !important;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 8rem;
}

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

.legal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: left;
    color: var(--accent-azure);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    opacity: 0.9;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}