:root {
    --bg: #050505;
    --card-bg: rgba(20, 20, 25, 0.6);
    --primary: #0080FF;
    --primary-glow: rgba(0, 128, 255, 0.4);
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(5, 5, 5, 0.8);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Glassmorphism Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.hero-brand-container {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-blue {
    color: var(--primary);
}

.hero-logo-white {
    color: #FFFFFF;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 2.2rem);
    color: #FFFFFF;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-subtitle-new {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 128, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services */
.services {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* About / Innovation */
.about {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-orb {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, #00C2FF 100%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s infinite alternate ease-in-out;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
}

.contact-email {
    display: block;
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2000;
    padding: 1.5rem 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.cookie-banner.hidden {
    transform: translateY(150%);
    opacity: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    font-size: 0.9375rem;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
}

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

.btn-sm {
    padding: 0.75rem 1.5rem;
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .grid-2, .contact-card { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 2rem; }
    .hero h1 { font-size: 3.5rem; }
    .cookie-content { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}

/* ==========================================
   AI Integrations - Estilos de Elite
   ========================================== */

/* AI Generator Section */
.ai-generator {
    padding: 100px 0;
    position: relative;
}

.generator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem;
    margin-top: 2rem;
    overflow: hidden;
}

.generator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.generator-result-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
    min-height: 380px;
}

.generator-result {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
    max-height: 520px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: border-color 0.5s ease;
}

.generator-result.active-result {
    border-color: rgba(0, 128, 255, 0.4);
    justify-content: flex-start;
    align-items: flex-start;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.glow-orb-small {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatGlow 3s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1.15); opacity: 0.9; }
}

.result-loading {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(0, 128, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-content {
    align-self: flex-start;
    width: 100%;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.result-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.result-content h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.result-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    list-style: square;
}

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

.result-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.result-content blockquote {
    background: rgba(0, 128, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--text);
}

/* Floating Chatbot Widget */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    font-family: var(--font-body);
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
}

.chatbot-toggle:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 128, 255, 0.6);
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ripple 2s infinite ease-out;
    opacity: 0;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 530px;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-window.hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    pointer-events: none;
}

.chatbot-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 128, 255, 0.3);
}

.chatbot-title-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    font-family: var(--font-heading);
}

.chatbot-title-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    position: absolute;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: #FFFFFF;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(5, 5, 5, 0.3);
}

/* Custom Scrollbar for Chat and Generator Result */
.chatbot-messages::-webkit-scrollbar, .generator-result::-webkit-scrollbar {
    width: 8px;
}
.chatbot-messages::-webkit-scrollbar-track, .generator-result::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb, .generator-result::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 255, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.chatbot-messages::-webkit-scrollbar-thumb:hover, .generator-result::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 128, 255, 0.6);
}

.chat-message {
    max-width: 85%;
    padding: 0.95rem 1.15rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-top-left-radius: 0.35rem;
    color: var(--text);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-top-right-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.2);
}

.chat-message p {
    margin-bottom: 0.5rem;
}
.chat-message p:last-child {
    margin-bottom: 0;
}

.chat-message ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-message li {
    margin-bottom: 0.25rem;
}

.chat-message strong {
    color: #FFFFFF;
}

.chat-message.user strong {
    color: #FFFFFF;
}

.chatbot-input-area {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.8rem 1.35rem;
    color: white;
    font-size: 0.9rem;
}

#chatbot-input:focus {
    border-color: var(--primary);
    outline: none;
}

#chatbot-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 128, 255, 0.2);
    flex-shrink: 0;
}

#chatbot-send:hover {
    transform: scale(1.05);
    background: #0070e0;
}

/* Neural Network Canvas */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Responsive Adaptations for AI elements */
@media (max-width: 768px) {
    .generator-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .chatbot-window {
        width: calc(100vw - 2rem);
        height: 480px;
        right: 0;
        bottom: 75px;
    }
    .chatbot-container {
        right: 1rem;
        bottom: 1rem;
    }
}

