/* Variables CSS Avanzadas */
:root {
    --primary-turquoise: #1BA29C;
    --primary-pink: #F5606D;
    --dark-bg: #0a0f1c;
    --darker-bg: #050a14;
    --darkest-bg: #030609;
    --light-text: #ffffff;
    --gray-text: #b0b9c8;
    --light-gray: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-strong: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #1BA29C 0%, #F5606D 100%);
    --gradient-2: linear-gradient(135deg, #F5606D 0%, #1BA29C 100%);
    --gradient-3: linear-gradient(45deg, #1BA29C 0%, #2DD4BF 50%, #F5606D 100%);
    --shadow-glow: 0 0 30px rgba(27, 162, 156, 0.3);
    --shadow-glow-pink: 0 0 30px rgba(245, 96, 109, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset y estilos base mejorados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Scrollbar personalizada mejorada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Canvas de partículas con más teal */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    background: linear-gradient(180deg,
            var(--dark-bg) 0%,
            rgba(10, 15, 28, 0.95) 30%,
            rgba(27, 162, 156, 0.05) 50%,
            var(--darker-bg) 70%,
            var(--darkest-bg) 100%);
}

/* Header mejorado con efectos avanzados */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(25px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(5, 10, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    height: 55px;
    filter: drop-shadow(0 0 20px rgba(27, 162, 156, 0.5));
    animation: pulse-glow 3s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.logo-nav:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(27, 162, 156, 0.8));
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(27, 162, 156, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(27, 162, 156, 0.9));
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-turquoise);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.login-btn {
    background: var(--gradient-1);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 96, 109, 0.5);
}

/* Hero Section con más énfasis en teal */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 15% 40%, rgba(27, 162, 156, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 60%, rgba(27, 162, 156, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(245, 96, 109, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 80%, rgba(27, 162, 156, 0.12) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    z-index: 2;
    position: relative;
}

.logo-hero {
    width: 450px;
    max-width: 90vw;
    margin-bottom: 1rem;
    /* REDUCIDO de 3rem a 1.5rem */
    animation: heartbeat 2s ease-in-out infinite;
    /* CAMBIADO a heartbeat */
    filter: drop-shadow(0 30px 60px rgba(27, 162, 156, 0.4));
    margin-top: 75px !important;
}

/* NUEVA animación de latido */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 30px 60px rgba(27, 162, 156, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 35px 70px rgba(27, 162, 156, 0.6));
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite, text-glow 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes gradient-shift {

    0%,
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }

    33% {
        filter: hue-rotate(15deg) brightness(1.1);
    }

    66% {
        filter: hue-rotate(-15deg) brightness(1.1);
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 20px rgba(27, 162, 156, 0.5);
    }

    100% {
        text-shadow: 0 0 30px rgba(245, 96, 109, 0.5);
    }
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    color: var(--gray-text);
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-primary {
    background: var(--gradient-1);
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.cta-secondary {
    background: transparent;
    color: var(--light-text);
    padding: 1.2rem 3.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--primary-turquoise);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(27, 162, 156, 0.5);
}

.cta-secondary:hover {
    background: var(--primary-turquoise);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(27, 162, 156, 0.5);
}

/* Indicadores de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce-scroll 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-text {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 1px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-turquoise);
    border-bottom: 2px solid var(--primary-turquoise);
    transform: rotate(45deg);
}

/* Secciones de contenido mejoradas */
.section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.section-alt {
    background: linear-gradient(135deg, rgba(27, 162, 156, 0.03) 0%, rgba(245, 96, 109, 0.03) 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-text);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Chatbot Section Avanzada */
.chatbot-section {
    padding: 6rem 2rem;
    background:
        linear-gradient(135deg, rgba(27, 162, 156, 0.08) 0%, rgba(245, 96, 109, 0.08) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.chatbot-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.chatbot-text h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 2rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.chatbot-text p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.chatbot-features {
    margin-top: 2rem;
}

.feature-pill {
    display: inline-block;
    background: rgba(27, 162, 156, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.25rem;
    font-size: 0.9rem;
    color: var(--primary-turquoise);
    border: 1px solid rgba(27, 162, 156, 0.3);
}

.chatbot-demo {
    position: relative;
    perspective: 1200px;
}

.chat-window {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    transform: rotateY(-8deg) rotateX(5deg);
    transition: var(--transition-smooth);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.chat-window::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-window:hover {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
}

.chat-window:hover::before {
    opacity: 0.3;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.chat-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 3px;
    position: relative;
}

.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #10B981;
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-status h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-status p {
    margin: 0;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    max-width: 85%;
    animation: message-appear 0.6s ease;
    position: relative;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-user {
    background: var(--gradient-1);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-bot {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border-left: 3px solid var(--primary-turquoise);
}

.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    align-self: flex-start;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-turquoise);
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Features Grid Mejorado */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 25px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(27, 162, 156, 0.2);
    border-color: rgba(27, 162, 156, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-pink);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--light-text);
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Sección de Arquitectura Tecnológica */
.tech-architecture {
    padding: 6rem 2rem;
    background: var(--darker-bg);
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.tech-layer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tech-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-layer:hover::before {
    transform: scaleX(1);
}

.tech-layer:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.tech-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-turquoise);
}

.tech-layer h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-turquoise);
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-list li:last-child {
    border-bottom: none;
}

/* Sección de Casos de Uso */
.use-cases {
    padding: 6rem 2rem;
}

.use-case-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: 2px solid var(--primary-turquoise);
    color: var(--primary-turquoise);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-turquoise);
    color: white;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.use-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.use-case-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-turquoise);
}

.use-case-benefits {
    list-style: none;
    padding: 0;
}

.use-case-benefits li {
    padding: 0.8rem 0;
    color: var(--gray-text);
    position: relative;
    padding-left: 2rem;
}

.use-case-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-turquoise);
    font-weight: bold;
    font-size: 1.2rem;
}

.use-case-image {
    display: flex;
    justify-content: center;
}

.use-case-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.use-case-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary-turquoise);
}

/* Testimonios */
.testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(245, 96, 109, 0.05) 0%, rgba(27, 162, 156, 0.05) 100%);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    margin: 0 1rem;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--light-text);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.author-info h4 {
    margin: 0;
    color: var(--light-text);
}

.author-info p {
    margin: 0;
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Estadísticas mejoradas */
.stats-section {
    padding: 6rem 2rem;
    background:
        var(--darker-bg),
        radial-gradient(circle at 25% 50%, rgba(27, 162, 156, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(245, 96, 109, 0.1) 0%, transparent 50%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.stat-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.3rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--primary-turquoise);
}

.faq-question {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--primary-turquoise);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background:
        linear-gradient(135deg, rgba(27, 162, 156, 0.1) 0%, rgba(245, 96, 109, 0.1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-button-large {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem 4rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-block;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.cta-button-large:hover::before {
    width: 500px;
    height: 500px;
}

.cta-button-large:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 60px rgba(27, 162, 156, 0.4);
}

/* Footer mejorado */
footer {
    background: var(--darkest-bg);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(27, 162, 156, 0.3));
}

.footer-description {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-turquoise);
    transform: translateX(5px);
}

.developed-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 1.2rem;
    color: var(--gray-text);
}

.intellia-logo {
    height: 45px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transition: var(--transition-smooth);
}

.intellia-logo:hover {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    transform: scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--gray-text);
}

/* Mobile menu mejorado */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Floating features con íconos */
.floating-features {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.feature-bubble {
    position: absolute;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    animation: float-bubble 25s ease-in-out infinite;
    opacity: 0.8;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-bubble svg {
    width: 16px;
    height: 16px;
    color: var(--primary-turquoise);
}

@keyframes float-bubble {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translate(60px, -40px) rotate(3deg) scale(1.05);
        opacity: 1;
    }

    50% {
        transform: translate(-40px, 30px) rotate(-3deg) scale(0.95);
        opacity: 0.9;
    }

    75% {
        transform: translate(40px, 40px) rotate(2deg) scale(1.02);
        opacity: 1;
    }
}

/* Responsive Design Mejorado */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .chatbot-container,
    .use-case-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        justify-content: center;
        transition: left 0.4s ease;
        z-index: 999;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .chat-window {
        transform: none;
        padding: 1.5rem;
    }

    .logo-hero {
        width: 280px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .use-case-tabs {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .logo-hero {
        width: 240px;
    }

    .chat-window {
        padding: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading overlay mejorado */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loading-logo {
    width: 250px;
    animation: pulse-loading 2s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes pulse-loading {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(27, 162, 156, 0.5));
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
        filter: drop-shadow(0 0 40px rgba(27, 162, 156, 0.8));
    }
}

.loading-text {
    color: var(--gray-text);
    font-size: 1.2rem;
    animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Utilidades */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glow-effect {
    box-shadow: var(--shadow-glow);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
}