/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1eb8d1;
    --primary-dark: #1a9db3;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #000000;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Oscuro */
[data-theme="dark"] {
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1d1d1f;
    --bg-dark: #000000;
    --border-color: #2d2d2f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Transición suave para cambio de tema */
* {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación para transición de tema */
@keyframes themePulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Ajustes específicos para modo oscuro */
[data-theme="dark"] body {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

[data-theme="dark"] .hero-visual {
    background: transparent !important;
}

[data-theme="dark"] .section {
    background: var(--bg-primary);
}

[data-theme="dark"] .section-header {
    color: var(--text-primary);
}

[data-theme="dark"] .tech-card {
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .tech-card:hover {
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(30, 184, 209, 0.3);
    box-shadow: 0 8px 32px rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .use-cases {
    background: var(--bg-secondary);
}

[data-theme="dark"] .contact {
    background: var(--bg-primary);
}

[data-theme="dark"] .contact-text {
    color: var(--text-primary);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-column h4 {
    color: white;
}

[data-theme="dark"] .footer-column ul li a {
    color: white;
}

[data-theme="dark"] .footer-links a {
    color: white;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-bottom p {
    color: white;
}

[data-theme="dark"] .floating-card .card-icon {
    background: rgba(30, 184, 209, 0.15);
    color: var(--primary-color);
}

[data-theme="dark"] .case-card {
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .case-card:hover {
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(30, 184, 209, 0.3);
    box-shadow: 0 8px 32px rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .case-icon-wrapper {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

[data-theme="dark"] .case-icon-animated {
    background: rgba(30, 184, 209, 0.1);
}

[data-theme="dark"] .case-content {
    color: var(--text-primary);
}

[data-theme="dark"] .case-title {
    color: var(--text-primary);
}

[data-theme="dark"] .case-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .tech-card-header {
    background: rgba(29, 29, 31, 0.8);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .tech-card-content {
    color: var(--text-secondary);
}

[data-theme="dark"] .tech-card-icon {
    background: rgba(30, 184, 209, 0.15);
    color: var(--primary-color);
}

[data-theme="dark"] .stat-badge {
    background: rgba(30, 184, 209, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(30, 184, 209, 0.2);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(29, 29, 31, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(29, 29, 31, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .floating-card {
    background: rgba(29, 29, 31, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(30, 184, 209, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(30, 184, 209, 0.1);
}

[data-theme="dark"] .floating-card:hover {
    border-color: rgba(30, 184, 209, 0.4);
    box-shadow: 0 12px 48px rgba(30, 184, 209, 0.2), 0 0 0 1px rgba(30, 184, 209, 0.3);
}

[data-theme="dark"] .case-card {
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .case-card:hover {
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(30, 184, 209, 0.3);
    box-shadow: 0 8px 32px rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .section {
    background: var(--bg-primary);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .chatbot-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .chatbot-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .chatbot-header-info h3 {
    color: white;
}

[data-theme="dark"] .chatbot-status {
    color: white;
}

[data-theme="dark"] .chatbot-messages {
    background: var(--bg-primary);
}

[data-theme="dark"] .chatbot-input-area {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .chatbot-input {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .chatbot-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

[data-theme="dark"] .chatbot-message.user {
    background: var(--bg-secondary);
}

[data-theme="dark"] .chatbot-message.bot {
    background: var(--bg-primary);
}

[data-theme="dark"] .chatbot-typing-indicator {
    background: var(--bg-primary);
}

[data-theme="dark"] .message-avatar {
    background: rgba(30, 184, 209, 0.15);
}

[data-theme="dark"] .chatbot-message.user .message-avatar {
    background: rgba(30, 184, 209, 0.1);
}

[data-theme="dark"] .chatbot-message.user .message-avatar svg {
    color: var(--primary-color);
}

[data-theme="dark"] .chatbot-input:disabled {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .chatbot-send:disabled {
    background: var(--border-color);
}

[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .chatbot-reset:hover,
[data-theme="dark"] .chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-menu {
    background: rgba(10, 10, 10, 0.98);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-color: #0a0a0a;
}

/* Prevenir scroll horizontal */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.1) 0%, rgba(30, 184, 209, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.logo-img {
    height: 42px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

.logo:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(30, 184, 209, 0.4));
}

[data-theme="dark"] .logo::before {
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.15) 0%, rgba(30, 184, 209, 0.08) 100%);
}

[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(30, 184, 209, 0.5));
}

[data-theme="dark"] .logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 6px 16px rgba(30, 184, 209, 0.7));
    transform: scale(1.08);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.15) 0%, rgba(30, 184, 209, 0.25) 100%);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 184, 209, 0.25), 0 0 0 0 rgba(30, 184, 209, 0.4);
    animation: themeButtonPulse 3s ease-in-out infinite;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0.2;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.theme-toggle:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(30, 184, 209, 0.4), 0 0 0 4px rgba(30, 184, 209, 0.15);
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.25) 0%, rgba(30, 184, 209, 0.35) 100%);
}

.theme-toggle:hover::before {
    opacity: 0.3;
}

.theme-toggle:active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 184, 209, 0.3);
}

@keyframes themeButtonPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(30, 184, 209, 0.25), 0 0 0 0 rgba(30, 184, 209, 0.4);
    }
    50% {
        box-shadow: 0 2px 8px rgba(30, 184, 209, 0.35), 0 0 0 4px rgba(30, 184, 209, 0.1);
    }
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.2) 0%, rgba(30, 184, 209, 0.3) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(30, 184, 209, 0.3), 0 0 0 0 rgba(30, 184, 209, 0.5);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 6px 24px rgba(30, 184, 209, 0.5), 0 0 0 4px rgba(30, 184, 209, 0.2);
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.3) 0%, rgba(30, 184, 209, 0.4) 100%);
}

.theme-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

.btn-full {
    width: 100%;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    background: transparent;
}

[data-theme="dark"] .hero-visual {
    background: transparent !important;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    border: 1px solid transparent;
}

[data-theme="dark"] .floating-card {
    background: rgba(29, 29, 31, 0.98) !important;
    border: 1px solid rgba(30, 184, 209, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(30, 184, 209, 0.1) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

[data-theme="dark"] .floating-card:hover {
    background: rgba(29, 29, 31, 1) !important;
    border-color: rgba(30, 184, 209, 0.4) !important;
    box-shadow: 0 12px 48px rgba(30, 184, 209, 0.2), 0 0 0 1px rgba(30, 184, 209, 0.3) !important;
    transform: translateY(-4px);
}

.card-1 {
    top: 8%;
    left: 0%;
    z-index: 1;
    animation-delay: 0s;
}

.card-2 {
    top: 35%;
    right: 5%;
    z-index: 2;
    animation-delay: 2s;
}

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

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    background: rgba(30, 184, 209, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

[data-theme="dark"] .card-icon {
    background: rgba(30, 184, 209, 0.15);
}

.floating-card p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d7a8f 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 17px;
    margin-bottom: 24px;
}

.service-card-video .service-description {
    margin-bottom: 24px;
}

.service-video-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    background: var(--bg-secondary);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-sm);
}

.service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 16px;
    pointer-events: none;
}

.service-video-container:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    padding-left: 4px;
    box-shadow: var(--shadow-md);
}

/* Technology Section */
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-description {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-feature {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.feature-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d7a8f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tech-card {
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(30, 184, 209, 0.15);
}

.tech-card-header {
    background: var(--bg-secondary);
    padding: 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.tech-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.tech-dot:nth-child(1) {
    background: #ff5f57;
}

.tech-dot:nth-child(2) {
    background: #ffbd2e;
}

.tech-dot:nth-child(3) {
    background: #28ca42;
}

.tech-card-content {
    padding: 40px;
}

.tech-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Use Cases Section */
.use-cases {
    background: var(--bg-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.case-card {
    background: white;
    padding: 0;
    border-radius: 24px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
}

[data-theme="dark"] .case-card {
    background: rgba(29, 29, 31, 0.6);
    border: 1px solid rgba(30, 184, 209, 0.15);
}

.case-card .case-content {
    padding: 32px;
    padding-top: 24px;
}

.case-stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    min-width: 80px;
    transition: var(--transition);
}

.case-card:hover .stat-badge {
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.1) 0%, rgba(30, 184, 209, 0.05) 100%);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.case-icon-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.case-icon-animated {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    transition: var(--transition);
}

.case-icon-animated svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(30, 184, 209, 0.3));
}

/* Icono 1: Automatización */
.icon-automation {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.icon-automation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover .icon-automation::before {
    opacity: 0.1;
}

.icon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.icon-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.icon-particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.icon-particles span:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.icon-particles span:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(20px, -30px) scale(1);
        opacity: 1;
    }
}

/* Icono 2: Visión Artificial */
.icon-vision {
    background: linear-gradient(135deg, rgba(30, 184, 209, 0.1) 0%, rgba(13, 122, 143, 0.1) 100%);
}

.icon-vision::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #1eb8d1 0%, #0d7a8f 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover .icon-vision::before {
    opacity: 0.1;
}

.icon-scan-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation: scanLine 2s linear infinite;
    box-shadow: 0 0 10px rgba(30, 184, 209, 0.6);
}

@keyframes scanLine {
    0% {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
}

/* Icono 3: Detección */
.icon-detection {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
}

.icon-detection::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover .icon-detection::before {
    opacity: 0.1;
}

.icon-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    animation: pulseRing 2s ease-out infinite;
    opacity: 0;
}

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

/* Icono 4: Workflow */
.icon-workflow {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
}

.icon-workflow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover .icon-workflow::before {
    opacity: 0.1;
}

.icon-flow-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: flowLine 2s ease-in-out infinite;
    opacity: 0;
}

.flow-line:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.flow-line:nth-child(2) {
    top: 50%;
    left: 50%;
    animation-delay: 0.7s;
}

.flow-line:nth-child(3) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.4s;
}

@keyframes flowLine {
    0%, 100% {
        transform: translateY(0) scaleY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px) scaleY(1);
        opacity: 1;
    }
}

/* GIF 1: Red Neuronal para Automatización - IA */
.gif-automation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.gif-automation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Red Neuronal Animada */
.neural-network {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    position: relative;
}

.neural-layer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.neuron {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    position: relative;
    animation: neuronPulse 2s ease-in-out infinite;
}

.neuron::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    animation: neuronGlow 2s ease-in-out infinite;
}

.layer-1 .neuron:nth-child(1) { animation-delay: 0s; }
.layer-1 .neuron:nth-child(2) { animation-delay: 0.3s; }
.layer-1 .neuron:nth-child(3) { animation-delay: 0.6s; }

.layer-2 .neuron:nth-child(1) { animation-delay: 0.1s; }
.layer-2 .neuron:nth-child(2) { animation-delay: 0.4s; }
.layer-2 .neuron:nth-child(3) { animation-delay: 0.7s; }
.layer-2 .neuron:nth-child(4) { animation-delay: 1s; }

.layer-3 .neuron:nth-child(1) { animation-delay: 0.2s; }
.layer-3 .neuron:nth-child(2) { animation-delay: 0.5s; }

@keyframes neuronPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes neuronGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Conexiones entre neuronas */
.neural-layer::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
    right: -15px;
    top: 0;
    animation: connectionFlow 2s linear infinite;
}

@keyframes connectionFlow {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Flujo de datos */
.data-stream {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.data-point {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dataFlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.data-point:nth-child(1) { animation-delay: 0s; }
.data-point:nth-child(2) { animation-delay: 0.5s; }
.data-point:nth-child(3) { animation-delay: 1s; }

@keyframes dataFlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) scale(1.5);
        opacity: 1;
    }
}

/* GIF 2: Visión Artificial con IA */
.gif-vision {
    background: linear-gradient(135deg, #1eb8d1 0%, #0d7a8f 100%);
    position: relative;
    overflow: hidden;
}

/* Escena de Visión Artificial con IA */
.ai-vision-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.vision-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.detection-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.detection-box {
    position: absolute;
    background: rgba(40, 202, 66, 0.2);
    border: 2px solid #28ca42;
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(4px);
    animation: detectionAppear 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(40, 202, 66, 0.5);
}

.db-1 {
    top: 10%;
    left: 10%;
    width: 60px;
    animation-delay: 0s;
}

.db-2 {
    top: 50%;
    right: 15%;
    width: 55px;
    animation-delay: 1s;
}

.db-3 {
    bottom: 15%;
    left: 20%;
    width: 50px;
    animation-delay: 2s;
}

.db-label {
    font-size: 9px;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.db-confidence {
    font-size: 11px;
    color: #28ca42;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(40, 202, 66, 0.8);
}

@keyframes detectionAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 1;
        transform: scale(1.1);
    }
    60% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.scan-beam {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(30, 184, 209, 1),
        rgba(255, 255, 255, 1),
        rgba(30, 184, 209, 1),
        transparent);
    top: 0;
    animation: scanBeam 2s linear infinite;
    box-shadow: 0 0 20px rgba(30, 184, 209, 0.8);
    z-index: 10;
}

@keyframes scanBeam {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

/* GIF 3: Machine Learning Detection */
.gif-detection {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.gif-detection::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    animation: gridScan 3s linear infinite;
}

@keyframes gridScan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4px, 4px); }
}

.detection-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

.object {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    animation: objectDetectAdvanced 3s ease-in-out infinite;
    border: 2px solid transparent;
}

.obj-1 {
    animation-delay: 0s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.obj-2 {
    animation-delay: 1s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.obj-3 {
    animation-delay: 2s;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.object::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    animation: objectGlow 3s ease-in-out infinite;
}

@keyframes objectGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

.object-label {
    position: absolute;
    bottom: -30px;
    font-size: 11px;
    color: white;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    animation: labelAppear 3s ease-in-out infinite;
}

@keyframes labelAppear {
    0%, 30% {
        opacity: 0;
        transform: translateY(5px);
    }
    40%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(5px);
    }
}

.obj-1 .object-label {
    animation-delay: 0.5s;
}

.obj-2 .object-label {
    animation-delay: 1.5s;
}

.obj-3 .object-label {
    animation-delay: 2.5s;
}

@keyframes objectDetectAdvanced {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0.6;
        border-color: transparent;
    }
    25% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
        border-color: rgba(255, 255, 255, 1);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        opacity: 0.95;
        border-color: rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.detection-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulseRingAdvanced 2.5s ease-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.detection-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulseRingAdvanced 2.5s ease-out infinite 0.3s;
}

.detection-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulseRingAdvanced 2.5s ease-out infinite 0.6s;
}

@keyframes pulseRingAdvanced {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* GIF 4: Flujos de Trabajo - Versión Mejorada */
.gif-workflow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    position: relative;
    overflow: hidden;
}

.gif-workflow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.workflow-diagram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    position: relative;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    animation: stepProcessAdvanced 5s ease-in-out infinite;
    z-index: 2;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.step-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.3), rgba(254, 225, 64, 0.3));
    opacity: 0;
    animation: iconGlow 5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.step-1 .step-icon {
    animation-delay: 0s;
}

.step-2 .step-icon {
    animation-delay: 1.25s;
}

.step-3 .step-icon {
    animation-delay: 2.5s;
}

.step-4 .step-icon {
    animation-delay: 3.75s;
}

.step-line {
    position: absolute;
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    right: -17.5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.step-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: lineShimmer 2s linear infinite;
}

.step-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #fa709a, #fee140);
    border-radius: 2px;
    animation: lineFillAdvanced 5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.step-1 .step-line::after {
    animation-delay: 0.8s;
}

.step-2 .step-line::after {
    animation-delay: 2.05s;
}

.step-3 .step-line::after {
    animation-delay: 3.3s;
}

@keyframes lineShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes stepProcessAdvanced {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
        border-color: transparent;
    }
    20% {
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.8);
    }
    40% {
        transform: scale(1.15) rotate(-3deg);
        opacity: 1;
        border-color: rgba(255, 255, 255, 1);
    }
    60% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.95;
        border-color: rgba(255, 255, 255, 0.9);
    }
    80% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.9;
        border-color: rgba(255, 255, 255, 0.7);
    }
}

@keyframes lineFillAdvanced {
    0% {
        width: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    60% {
        width: 100%;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 0.6;
    }
}

.case-content {
    padding: 40px;
    padding-top: 24px;
    position: relative;
}

.case-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
}

.case-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 17px;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Chatbot Styles - Estilo Gemini */
.chatbot-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-width: 900px;
    margin: 40px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .chatbot-container {
        height: 600px;
        border-radius: 16px;
        margin-top: 24px;
    }
}

/* Modal de Consentimiento de Datos Personales */
.data-consent-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.data-consent-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.data-consent-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.data-consent-header {
    padding: 40px 24px 32px;
    background: white;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-consent-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-consent-subtitle {
    font-size: 17px;
    margin: 0;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.data-consent-body {
    padding: 28px 24px;
    flex: 1;
    overflow-y: auto;
}

.data-consent-benefits {
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #fafbfc;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.benefit-item:hover {
    background: rgba(30, 184, 209, 0.04);
    border-color: rgba(30, 184, 209, 0.15);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(30, 184, 209, 0.1);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 184, 209, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.benefit-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.benefit-text span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.data-consent-message {
    background: #fafbfc;
    border-left: 2px solid var(--primary-color);
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.data-consent-message p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.data-consent-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.data-consent-message a:hover {
    border-bottom-color: var(--primary-color);
}

.data-consent-checkbox {
    padding: 20px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.data-consent-checkbox:has(input:checked) {
    background: rgba(30, 184, 209, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 184, 209, 0.1);
}

.data-consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.data-consent-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    border-radius: 4px;
}

.data-consent-checkbox span {
    flex: 1;
}

.data-consent-checkbox span a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.data-consent-checkbox span a:hover {
    border-bottom-color: var(--primary-color);
}

.data-consent-footer {
    padding: 24px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.data-consent-footer .btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.data-consent-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(30, 184, 209, 0.3);
    position: relative;
    overflow: hidden;
}

.data-consent-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.data-consent-footer .btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.data-consent-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 184, 209, 0.4);
}

.data-consent-footer .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.data-consent-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.data-consent-footer .btn-secondary {
    background: #f8f9fa;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.data-consent-footer .btn-secondary:hover {
    background: #e8eaed;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .data-consent-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .data-consent-header,
    .data-consent-body,
    .data-consent-footer {
        padding: 20px;
    }
    
    .data-consent-footer {
        flex-direction: column;
    }
    
    .data-consent-footer .btn {
        width: 100%;
    }
}

/* Chatbot Styles - Estilo Gemini (ahora flotante) */
/* Los estilos principales del chatbot-container están en .chatbot-widget arriba */

.chatbot-header {
    background: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 184, 209, 0.2);
}

.chatbot-avatar svg {
    width: 20px;
    height: 20px;
    color: white;
    z-index: 2;
}

.avatar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(30, 184, 209, 0.2);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.chatbot-header-info {
    flex: 1;
    text-align: left;
}

.chatbot-header-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 2px 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.chatbot-status {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chatbot-reset,
.chatbot-close {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.chatbot-reset:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.chatbot-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.chatbot-reset svg,
.chatbot-close svg {
    width: 18px;
    height: 18px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    position: relative;
}

.chatbot-message {
    display: flex;
    gap: 0;
    animation: messageSlideIn 0.2s ease-out;
    width: 100%;
    padding: 16px 24px;
    box-sizing: border-box;
}

.chatbot-message.user {
    background: white;
    flex-direction: row-reverse;
}

.chatbot-message.bot {
    background: #f8f9fa;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.message-bubble {
    padding: 0;
    border-radius: 0;
    line-height: 1.75;
    font-size: 15px;
    word-wrap: break-word;
    max-width: 100%;
    flex: 1;
}

.chatbot-message.bot .message-bubble {
    background: transparent;
    color: var(--text-primary);
    padding-right: 60px;
    font-weight: 400;
}

.chatbot-message.user .message-bubble {
    background: transparent;
    color: var(--text-primary);
    padding-left: 60px;
    text-align: right;
    font-weight: 400;
}

.message-bubble a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.message-bubble a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

@media (max-width: 640px) {
    .chatbot-message.bot .message-bubble {
        padding-right: 50px;
        font-size: 14px;
    }
    
    .chatbot-message.user .message-bubble {
        padding-left: 50px;
        font-size: 14px;
    }
    
    .chatbot-message {
        padding: 12px 16px;
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin-right: 12px;
    box-shadow: 0 1px 3px rgba(30, 184, 209, 0.2);
}

.chatbot-message.user .message-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin-right: 0;
    margin-left: 12px;
    order: 2;
    box-shadow: 0 1px 3px rgba(30, 184, 209, 0.2);
}

.message-avatar svg {
    width: 18px;
    height: 18px;
    color: white;
}

.chatbot-message.user .message-avatar svg {
    color: white;
}

.chatbot-typing-indicator {
    display: none;
    padding: 16px 24px;
    gap: 6px;
    align-items: center;
    background: #f8f9fa;
    padding-left: 80px;
}

@media (max-width: 640px) {
    .chatbot-typing-indicator {
        padding-left: 70px;
    }
}

.chatbot-typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: white;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.5;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.chatbot-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(30, 184, 209, 0.3);
}

.chatbot-send:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(30, 184, 209, 0.4);
    transform: translateY(-1px);
}

.chatbot-send:active:not(:disabled) {
    transform: translateY(0);
}

.chatbot-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #dadce0;
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
}

/* Scrollbar personalizado para el área de mensajes - Estilo Gemini */
.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.contact-description {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    background: white;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 184, 209, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Notificaciones del formulario */
.form-notification {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.form-notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado del botón de envío */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    height: 32px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
        gap: 50px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-visual {
        height: 300px;
        width: 100%;
        margin-top: 20px;
    }

    .floating-card {
        padding: 14px 16px;
        max-width: 110px;
        font-size: 11px;
    }

    .floating-card p {
        font-size: 10px;
        white-space: nowrap;
    }

    .card-icon {
        font-size: 22px;
    }

    .card-1 {
        top: 8% !important;
        left: 5% !important;
    }

    .card-2 {
        top: 40% !important;
        right: 5% !important;
    }

    .card-3 {
        bottom: 8% !important;
        left: 10% !important;
    }

    .tech-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-title {
        font-size: 36px;
    }

    .case-icon-wrapper {
        height: 160px;
    }

    .case-icon-animated {
        width: 110px;
        height: 110px;
    }

    .case-content {
        padding: 32px;
    }

    .nav-actions {
        gap: 12px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 40px 0;
        box-shadow: var(--shadow-lg);
        gap: 24px;
    }

    .nav-menu.active {
        left: 0;
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(10, 10, 10, 0.98);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

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

    .hero {
        padding: 80px 16px 40px;
        gap: 30px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .hero-visual {
        height: 200px;
        margin-top: 20px;
        position: relative;
    }

    .floating-card {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 9px;
        max-width: 95px;
        box-shadow: var(--shadow-md);
        position: absolute;
    }

    .floating-card p {
        font-size: 9px;
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-icon {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .card-1 {
        top: 5% !important;
        left: 3% !important;
        z-index: 1;
    }

    .card-2 {
        top: 50% !important;
        right: 3% !important;
        transform: translateY(-50%);
        z-index: 2;
    }

    .card-3 {
        bottom: 5% !important;
        left: 5% !important;
        z-index: 3;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 16px;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    section {
        padding: 60px 0;
    }

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

    .service-card,
    .case-card {
        padding: 0;
    }

    .case-icon-wrapper {
        height: 150px;
    }

    .case-icon-animated {
        width: 100px;
        height: 100px;
    }

    .case-icon-animated svg {
        width: 48px;
        height: 48px;
    }

    .case-content {
        padding: 24px;
        padding-top: 16px;
    }

    .case-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .case-description {
        font-size: 15px;
        line-height: 1.5;
    }

    .case-number {
        font-size: 56px;
        top: 10px;
        right: 16px;
    }

    .case-stats {
        margin-top: 16px;
        gap: 8px;
    }

    .stat-badge {
        padding: 10px 12px;
        min-width: 70px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 10px;
    }

    .tech-content {
        gap: 40px;
    }

    .tech-description {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .tech-features {
        gap: 24px;
    }

    .tech-feature {
        gap: 16px;
    }

    .feature-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .feature-content h4 {
        font-size: 18px;
    }

    .feature-content p {
        font-size: 15px;
    }

    .tech-card {
        max-width: 100%;
    }

    .tech-card-content {
        padding: 24px;
    }

    .stat-value {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }

    .contact-content {
        padding: 0 16px;
    }

    .contact-description {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .chatbot-container {
        height: 600px;
        border-radius: 16px;
    }

    .chatbot-header {
        padding: 16px 20px;
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
    }

    .chatbot-header-info h3 {
        font-size: 16px;
    }

    .chatbot-status {
        font-size: 12px;
    }

    .chatbot-messages {
        padding: 16px;
        gap: 12px;
    }

    .chatbot-message {
        max-width: 90%;
    }

    .message-bubble {
        padding: 10px 14px;
        font-size: 14px;
    }

    .chatbot-input-area {
        padding: 16px 20px;
    }

    .chatbot-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .chatbot-send {
        width: 40px;
        height: 40px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        gap: 32px;
    }

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

/* Ajustes adicionales para móviles muy pequeños */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-visual {
        height: 180px;
    }

    .floating-card {
        padding: 10px;
        max-width: 90px;
        font-size: 9px;
    }

    .floating-card p {
        font-size: 9px;
    }

    .card-icon {
        font-size: 16px;
    }

    .case-icon-wrapper {
        height: 120px;
    }

    .case-icon-animated {
        width: 80px;
        height: 80px;
    }

    .case-icon-animated svg {
        width: 40px;
        height: 40px;
    }

    .case-content {
        padding: 20px;
    }

    .case-number {
        font-size: 48px;
    }
}

/* Smooth Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nuevas Animaciones de IA - Machine Learning Detection */
.ml-detection {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.ml-processor {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ml-node {
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: mlProcess 2s ease-in-out infinite;
    position: relative;
}

.ml-node.active {
    animation: mlProcess 2s ease-in-out infinite;
}

.ml-node.active::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1), transparent);
    animation: mlPulse 2s ease-in-out infinite;
}

.ml-node:nth-child(1) { animation-delay: 0s; }
.ml-node:nth-child(2) { animation-delay: 0.3s; }
.ml-node:nth-child(3) { animation-delay: 0.6s; }

@keyframes mlProcess {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes mlPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
}

.detection-results {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

.result-bar {
    height: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,1));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: resultFill 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.result-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: resultShine 2s linear infinite;
}

.result-item:nth-child(1) .result-bar { animation-delay: 0s; }
.result-item:nth-child(2) .result-bar { animation-delay: 0.5s; }
.result-item:nth-child(3) .result-bar { animation-delay: 1s; }

@keyframes resultFill {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes resultShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.ml-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.connection-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.connection-path {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 5, 5;
    animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -20;
        opacity: 0.4;
    }
}

/* AI Pipeline Animation */
.ai-pipeline {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    position: relative;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.stage-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: stageProcess 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.stage-1 .stage-icon { animation-delay: 0s; }
.stage-2 .stage-icon { animation-delay: 1s; }
.stage-3 .stage-icon { animation-delay: 2s; }

@keyframes stageProcess {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    66% {
        transform: scale(1.1) rotate(-3deg);
        opacity: 1;
    }
}

.stage-data {
    display: flex;
    gap: 3px;
    height: 20px;
}

.data-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: dataPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.data-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.data-bar:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.data-bar:nth-child(3) { height: 15px; animation-delay: 0.4s; }

@keyframes dataPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

.ai-processing {
    width: 60px;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.processing-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.6),
        rgba(255,255,255,1),
        rgba(255,255,255,0.6),
        transparent);
    animation: waveProcess 2s linear infinite;
}

@keyframes waveProcess {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.output-sparkles {
    display: flex;
    gap: 5px;
}

.sparkle {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkleAnim 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }

@keyframes sparkleAnim {
    0%, 100% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

.pipeline-arrow {
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: arrowPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

