:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.7);
    --accent-primary: #00d4ff;
    --accent-secondary: #7b2cbf;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b6b7b;
    --wa-color: #25d366;
    --tg-color: #0088cc;
    --school-color: #ff6b35;
    --web-color: #4361ee;
    --card-color: #f72585;
    --api-color: #7209b7;
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(123, 44, 191, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.85)), url('/static/images/fondo.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-gradient);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    color: var(--bg-primary) !important;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

.hamburger::before {
    top: -9px;
}

.hamburger::after {
    bottom: -9px;
}

.nav-toggle.active .hamburger {
    background: transparent !important;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: #ffffff !important;
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: #ffffff !important;
}

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 100px 24px 40px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(123, 44, 191, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-visual {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 2rem;
}

.floating-card .card-icon.wa {
    color: var(--wa-color);
}

.floating-card .card-icon.tg {
    color: var(--tg-color);
}

.floating-card .card-icon.ai {
    color: var(--accent-primary);
}

.floating-card span {
    font-weight: 600;
    font-size: 1rem;
}

.card-1 {
    top: 10%;
    left: 30%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 45%;
    animation-delay: 4s;
}

@keyframes float {

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.products {
    padding: 60px 0;
    background: rgba(18, 18, 26, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 44, 191, 0.15);
    border: 1px solid rgba(123, 44, 191, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card.featured {
    border-color: rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.card-icon-wrapper.wa-bg {
    background: rgba(37, 211, 102, 0.15);
    color: var(--wa-color);
}

.card-icon-wrapper.tg-bg {
    background: rgba(0, 136, 204, 0.15);
    color: var(--tg-color);
}

.card-icon-wrapper.school-bg {
    background: rgba(255, 107, 53, 0.15);
    color: var(--school-color);
}

.card-icon-wrapper.web-bg {
    background: rgba(67, 97, 238, 0.15);
    color: var(--web-color);
}

.card-icon-wrapper.card-bg {
    background: rgba(247, 37, 133, 0.15);
    color: var(--card-color);
}

.card-icon-wrapper.api-bg {
    background: rgba(114, 9, 183, 0.15);
    color: var(--api-color);
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-features {
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 0;
}

.card-features li i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link:hover {
    gap: 12px;
}

.ai-section {
    padding: 60px 0;
    background: transparent;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ai-content .section-badge {
    display: inline-flex;
}

.ai-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.ai-feature:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(8px);
}

.ai-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 12px;
    color: var(--bg-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ai-feature-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.ai-feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-chat-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
    animation: ctaGlow 3s ease-in-out infinite;
    position: relative;
    height: 100%;
    min-height: auto;
}

@keyframes ctaGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 60px rgba(123, 44, 191, 0.2);
    }
}

.cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--bg-primary);
    margin-bottom: 24px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ai-chat-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ai-chat-cta p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

/* Chat Button Speech Bubble */
.chat-speech-bubble {
    position: absolute;
    right: calc(100% + 14px);
    bottom: 10px;
    background: #ffffff;
    color: #0a0a0f;
    padding: 10px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.5) translateX(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.chat-speech-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-left-color: #ffffff;
}

.chat-speech-bubble.visible {
    opacity: 1;
    transform: scale(1) translateX(0);
    animation: bubbleFloat 2.5s ease-in-out infinite 0.4s;
}

#chatButton.attention {
    animation: chatBtnAttention 1.2s ease-in-out infinite;
}

@keyframes bubbleFloat {

    0%,
    100% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.03) translateX(-4px);
    }
}

@keyframes chatBtnAttention {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 8px 40px rgba(0, 212, 255, 0.9);
    }
}

.big-chat-arrow {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    animation: bigArrowPulse 1.5s ease-in-out infinite;
    opacity: 0.9;
}

.arrow-line {
    width: 400px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin-right: 10px;
    border-radius: 2px;
}

.big-chat-arrow i {
    font-size: 5rem;
    color: var(--accent-primary);
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes bigArrowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}

.privacy {
    padding: 60px 0;
    background: rgba(18, 18, 26, 0.6);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.privacy-block {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 32px;
}

.privacy-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.privacy-block h3 i {
    font-size: 1.25rem;
}

.privacy-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-block ul {
    padding-left: 24px;
    list-style: disc;
}

.privacy-block ul li {
    color: var(--text-secondary);
    padding: 6px 0;
}

.privacy-block ul li strong {
    color: var(--text-primary);
}

.last-update {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact {
    padding: 60px 0;
    background: transparent;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

.contact-card.wa-card:hover {
    border-color: var(--wa-color);
}

.contact-card i:first-child {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.15);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--wa-color);
}

.contact-card:not(.wa-card) i:first-child {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-primary);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-card i:last-child {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-card.wa-card:hover i:last-child {
    transform: translateX(4px);
    color: var(--wa-color);
}

.footer {
    background: var(--bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-primary);
    transform: translateY(-4px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wa-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

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

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

    .hero-visual {
        min-height: 300px;
    }

    .floating-card {
        display: none;
    }

    .ai-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #0a0a0f;
        flex-direction: column;
        align-items: center;
        gap: 0;
        display: none;
        z-index: 1003;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 0;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 14px 24px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 212, 255, 0.1);
    }

    .nav-cta {
        margin: 8px 24px 0;
        border-radius: var(--border-radius-sm);
    }

    .hero {
        padding: 100px 24px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .products {
        padding: 40px 0;
    }

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

    .product-card {
        padding: 24px;
    }

    .ai-section {
        padding: 40px 0;
    }

    .privacy {
        padding: 40px 0;
    }

    .privacy-content {
        gap: 24px;
    }

    .privacy-block {
        padding: 24px;
    }

    .contact {
        padding: 40px 0;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-btn {
        bottom: 16px;
        left: 16px;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .chat-widget {
        bottom: 90px;
        right: 16px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .card-features li {
        font-size: 0.85rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* CHAT WIDGET - NUEVO */
#chatContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-primary);
}

#chatButton {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: chatPulse 2s ease-in-out infinite;
}

#chatButton:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.8);
}

@keyframes chatPulse {

    0%,
    100% {
        box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
    }

    50% {
        box-shadow: 0 6px 40px rgba(123, 44, 191, 0.8);
    }
}

#chatPanel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    height: 450px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 150px);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#chatPanel.open {
    display: flex;
}

#chatPanelHeader {
    height: 50px;
    padding: 0 16px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

#chatPanelHeader span {
    font-weight: 600;
    color: var(--text-primary);
}

#chatCloseBtn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

#chatCloseBtn:hover {
    color: var(--text-primary);
}

#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.chatMsg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatMsg.bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatMsg.user {
    background: var(--accent-primary);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatMsg.typing {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    padding: 14px 18px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

#chatPanelFooter {
    height: 56px;
    padding: 0 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

#chatMessageInput {
    flex: 1;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0 14px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

#chatMessageInput::placeholder {
    color: var(--text-muted);
}

#chatMessageInput:focus {
    border-color: var(--accent-primary);
}

#chatSendBtn {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    body.chat-open {
        overflow: hidden;
        touch-action: none;
    }

    #chatPanel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        z-index: 10000;
        transition: none;
    }

    #chatPanel.open {
        display: flex;
    }

    #chatContainer {
        right: 16px;
        bottom: 16px;
    }

    #chatMessageInput {
        font-size: 16px;
    }

    #chatPanelHeader {
        height: 56px;
        padding: 0 20px;
        flex-shrink: 0;
    }

    #chatPanelFooter {
        padding: 8px 16px;
        height: auto;
        min-height: 56px;
        flex-shrink: 0;
    }

    #chatSendBtn {
        width: 40px;
        height: 40px;
    }
}

/* ===================== */
/* PAYMENTS SECTION */
/* ===================== */
.payments {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.payments-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.payment-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.payment-feature:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.payment-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 12px;
    color: var(--bg-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.payment-feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.payments-demo {
    display: flex;
    justify-content: center;
}

.payment-demo-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.payment-demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.payment-demo-amount {
    margin-bottom: 24px;
}

.amount-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.amount-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-demo-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

.payment-demo-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .payments {
        padding: 40px 0;
    }

    .payments-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===================== */
/* PAYMENT POPUP */
/* ===================== */
.payment-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.payment-popup.active {
    display: block;
}

.payment-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.payment-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 24px;
    width: 95%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .payment-popup.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .payment-popup-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        border-radius: 0;
        padding: 56px 16px 16px;
        z-index: 10001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .payment-popup-close {
        position: fixed;
        top: 8px;
        right: 8px;
    }
}

.payment-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
}

.payment-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 480px) {
    .payment-popup-close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.2);
    }
}

.payment-popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    font-size: 0.9rem;
}

#paymentResult {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    display: none;
}

#paymentResult.success {
    display: block;
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid var(--wa-color);
    color: var(--wa-color);
}

#paymentResult.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* --- Estilos para imágenes nuevas --- */

.hero-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--glow-primary);
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out;
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.ai-text {
    flex: 1;
}

.ai-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ai-side-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.payment-image-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.payment-methods-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

@media (max-width: 768px) {
    .ai-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .card-img-top {
        height: 150px;
    }

    .hero-main-img {
        max-width: 100%;
    }
}