:root {

    --bg-dark: #0b0f19;
    --bg-dark-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-card-hover: rgba(31, 41, 55, 0.8);

    --brand-purple: #7c5295;
    --brand-purple-light: #9d6dbd;
    --brand-purple-glow: rgba(124, 82, 149, 0.4);

    --accent-cyan: #38bdf8;
    --accent-teal: #2dd4bf;
    --accent-green: #34d399;
    --accent-amber: #fbbf24;

    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(124, 82, 149, 0.35);

    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
    --max-width: 1240px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}


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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}


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

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.bg-light {
    background: rgba(17, 24, 39, 0.45);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 82, 149, 0.15);
    color: var(--brand-purple-light);
    border: 1px solid rgba(157, 109, 189, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.3);
}

.badge-teal {
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent-teal);
    border-color: rgba(45, 212, 191, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--brand-purple-light) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #63367d 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(124, 82, 149, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 82, 149, 0.6);
    background: linear-gradient(135deg, #8b5aa7 0%, var(--brand-purple) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

/* Navegación Flotante (Glassmorphism Header) */
.header {
    position: sticky;
    top: 1.25rem;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(124, 82, 149, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(157, 109, 189, 0.6));
}

.logo-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
}

@media (min-width: 992px) {
    .logo-tagline {
        display: block;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-purple-light);
}

/* Botón Hamburguesa Móvil */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION ENRIQUECIDO */
.hero {
    position: relative;
    padding: 4rem 0 6rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.6rem;
}

.hero-slogan {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.stat-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-purple-light);
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mockup Visual 3D Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    perspective: 1000px;
}

.phone-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s ease, filter 0.5s ease;
    transform: rotateY(-8deg) rotateX(4deg);
}

.phone-mockup-wrapper:hover .phone-mockup-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    filter: drop-shadow(0 25px 50px rgba(124, 82, 149, 0.35));
}

/* Tarjetas Flotantes en Hero */
.floating-card {
    position: absolute;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 3;
}

.floating-card-1 {
    top: 10%;
    left: -10%;
}

.floating-card-2 {
    bottom: 12%;
    right: -8%;
    animation-delay: -3s;
}

.floating-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(124, 82, 149, 0.2);
    color: var(--brand-purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-info strong {
    font-size: 0.95rem;
    color: var(--text-white);
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* TARJETAS DE BENEFICIOS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-purple-light), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(124, 82, 149, 0.15);
    border: 1px solid rgba(157, 109, 189, 0.25);
    color: var(--brand-purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* SECCIÓN COMPARATIVA: PROBLEMA VS SOLUCIÓN */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-box {
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    backdrop-filter: blur(12px);
}

.comparison-box.problems {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-box.solutions {
    background: rgba(45, 212, 191, 0.04);
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comparison-list .icon-bad {
    color: #ef4444;
    font-size: 1.1rem;
    line-height: 1.4;
}

.comparison-list .icon-good {
    color: var(--accent-teal);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* SECCIÓN AAAS - AGENTES IA */
.aaas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.agent-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.5) 100%);
    border: 1px solid rgba(124, 82, 149, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    position: relative;
    transition: all 0.35s ease;
}

.agent-card:hover {
    border-color: var(--brand-purple-light);
    box-shadow: 0 15px 35px var(--brand-purple-glow);
    transform: translateY(-5px);
}

.agent-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.agent-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.agent-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-white);
}

.agent-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* SIMULADOR / DEMO DE MÓDULOS MVP (TABS) */
.modules-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
}

.tabs-header {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--brand-purple);
    color: #ffffff;
    border-color: var(--brand-purple-light);
    box-shadow: 0 5px 15px rgba(124, 82, 149, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.tab-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.tab-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

.feature-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.feature-check-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-white);
}

.feature-check-list span {
    color: var(--accent-teal);
    font-weight: bold;
}

.tab-preview-box {
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mock-window-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.mock-window-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.05em;
}

/* PÚBLICO OBJETIVO (12 SEGMENTOS) */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.target-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.target-item:hover {
    border-color: var(--cyan-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(56, 189, 248, 0.15);
}

.target-icon {
    font-size: 1.3rem;
    color: var(--cyan-accent);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.target-item:hover .target-icon {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-primary);
    border-color: rgba(139, 92, 246, 0.4);
}

.tab-btn i {
    margin-right: 0.4rem;
}

.text-teal {
    color: var(--accent-teal);
}

.target-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

@media (max-width: 900px) {
    .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .target-grid {
        grid-template-columns: 1fr;
    }
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--accent-cyan) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-purple-light);
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 12px var(--brand-purple-light);
    z-index: 4;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem 1.8rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.timeline-box h3 {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
}

.timeline-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.timeline-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* FAQ ACCORDION */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 1.4rem 1.6rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--brand-purple-light);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.6rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.6rem 1.4rem 1.6rem;
}



.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

/* FOOTER */
.footer {
    padding: 3rem 0 2rem 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* RESPLANDORES DE FONDO AMBIENTALES */
.glow-purple {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(124, 82, 149, 0.3) 0%, rgba(99, 54, 125, 0.08) 50%, transparent 70%);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.glow-cyan {
    position: absolute;
    top: 500px;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(45, 212, 191, 0.05) 50%, transparent 70%);
    filter: blur(110px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

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

    .tab-content.active {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }

    .cta-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 5rem;
        left: 0;
        right: 0;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .floating-card {
        display: none;
        /* Simplificar en móviles para mejor visión */
    }
}