/* Sherlock Solutions - Estilos principales */

:root {
    --sherlock-primary: #1a365d;
    --sherlock-secondary: #2563eb;
    --sherlock-accent: #3b82f6;
    --sherlock-dark: #0f172a;
    --sherlock-light: #f1f5f9;
    --sherlock-text-light: #e2e8f0;
    --sherlock-border: #334155;
    --sherlock-gradient: linear-gradient(135deg, #1a365d 0%, #0f172a 100%);
}

/* Reset y configuración base */
.sherlock-body {
    background: var(--sherlock-gradient);
    color: #2a5196;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Header y navegación */
.sherlock-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sherlock-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sherlock-header .navbar {
    padding: 1rem 0;
}

.sherlock-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sherlock-text-light) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sherlock-brand:hover {
    color: var(--sherlock-accent) !important;
}

.sherlock-header .nav-link {
    color: var(--sherlock-text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sherlock-header .nav-link:hover {
    color: var(--sherlock-accent) !important;
    background: rgba(59, 130, 246, 0.1);
}

.sherlock-header .nav-link.active {
    color: var(--sherlock-accent) !important;
    background: rgba(59, 130, 246, 0.2);
}

.sherlock-btn-primary {
    background: var(--sherlock-secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.sherlock-btn-primary:hover {
    background: var(--sherlock-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Contenido principal */
.sherlock-main {
    min-height: calc(100vh - 200px);
    position: relative;
}

/* Hero Section */
.sherlock-hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.sherlock-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sherlock-hero-content {
    position: relative;
    z-index: 2;
}

.sherlock-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sherlock-hero .lead {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Futuristic AI Brain Graphics */
.sherlock-ai-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    z-index: 1;
}

.brain-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
}

/* Outer Rings Animation */
.outer-ring {
    animation: rotateClockwise 30s linear infinite;
    transform-origin: center;
}

.middle-ring {
    animation: rotateCounterClockwise 25s linear infinite;
    transform-origin: center;
}

.inner-ring {
    animation: rotateClockwise 20s linear infinite;
    transform-origin: center;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* AI Core Animation */
.ai-core {
    animation: coreEnergy 3s ease-in-out infinite;
}

@keyframes coreEnergy {
    0%, 100% { 
        stroke: #3b82f6;
        stroke-width: 3;
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
    }
    50% { 
        stroke: #60a5fa;
        stroke-width: 4;
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 1));
    }
}

/* Neural Network Lines Animation */
.neural-line {
    animation: dataFlow 4s ease-in-out infinite;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.5s; }
.line-3 { animation-delay: 1s; }
.line-4 { animation-delay: 1.5s; }
.line-5 { animation-delay: 2s; }
.line-6 { animation-delay: 2.5s; }
.line-7 { animation-delay: 3s; }
.line-8 { animation-delay: 3.5s; }

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 200;
        stroke-opacity: 0.3;
    }
    25% {
        stroke-dashoffset: 0;
        stroke-opacity: 1;
    }
    75% {
        stroke-dashoffset: 0;
        stroke-opacity: 1;
    }
    100% {
        stroke-dashoffset: -200;
        stroke-opacity: 0.3;
    }
}

/* Brain Outline Animation */
.brain-outline {
    animation: brainPulse 4s ease-in-out infinite;
}

.left-brain {
    animation-delay: 0s;
}

.right-brain {
    animation-delay: 2s;
}

@keyframes brainPulse {
    0%, 100% {
        stroke: #3b82f6;
        stroke-width: 3;
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    }
    50% {
        stroke: #60a5fa;
        stroke-width: 4;
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    }
}

/* Connection Nodes Animation */
.node {
    animation: nodeActivity 2s ease-in-out infinite;
}

.main-node {
    animation-delay: 0s;
}

.center-node {
    animation: centerNodePulse 3s ease-in-out infinite;
}

.secondary-node {
    animation-delay: 1s;
}

@keyframes nodeActivity {
    0%, 100% {
        fill: #3b82f6;
        r: 6;
    }
    50% {
        fill: #60a5fa;
        r: 8;
    }
}

@keyframes centerNodePulse {
    0%, 100% {
        fill: #60a5fa;
        r: 8;
        filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.8));
    }
    50% {
        fill: #93c5fd;
        r: 12;
        filter: drop-shadow(0 0 20px rgba(96, 165, 250, 1));
    }
}

/* Data Flow Indicators */
.data-flow {
    animation: dataFlowIndicator 1.5s ease-in-out infinite;
}

.flow-1 { animation-delay: 0s; }
.flow-2 { animation-delay: 0.4s; }
.flow-3 { animation-delay: 0.8s; }
.flow-4 { animation-delay: 1.2s; }

@keyframes dataFlowIndicator {
    0%, 100% {
        opacity: 0.5;
        r: 3;
    }
    50% {
        opacity: 1;
        r: 5;
    }
}

/* AI Letters Futuristic Animation */
.ai-letters-futuristic {
    animation: textEnergy 3s ease-in-out infinite;
}

@keyframes textEnergy {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(96, 165, 250, 1)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.8));
    }
}

/* Tech Particles Animation */
.tech-particle {
    animation: techFloat 4s ease-in-out infinite;
}

.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 0.7s; }
.particle-3 { animation-delay: 1.4s; }
.particle-4 { animation-delay: 2.1s; }
.particle-5 { animation-delay: 2.8s; }
.particle-6 { animation-delay: 3.5s; }

@keyframes techFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0px);
        opacity: 0.7;
    }
    25% {
        transform: rotate(90deg) translateY(-8px);
        opacity: 1;
    }
    50% {
        transform: rotate(135deg) translateY(-5px);
        opacity: 0.8;
    }
    75% {
        transform: rotate(180deg) translateY(-12px);
        opacity: 1;
    }
}

/* Data Streams Animation */
.stream {
    animation: streamFlow 3s ease-in-out infinite;
    stroke-dasharray: 10, 5;
}

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

@keyframes streamFlow {
    0% {
        stroke-dashoffset: 0;
        stroke-opacity: 0.5;
    }
    50% {
        stroke-dashoffset: 15;
        stroke-opacity: 1;
    }
    100% {
        stroke-dashoffset: 30;
        stroke-opacity: 0.5;
    }
}

/* Product Cards */
.sherlock-products {
    padding: 80px 0;
}

.sherlock-product-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--sherlock-border);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sherlock-product-card:hover {
    transform: translateY(-10px);
    border-color: var(--sherlock-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sherlock-product-icon {
  
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.sherlock-product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sherlock-text-light);
}

.sherlock-product-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer */
.sherlock-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--sherlock-border);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.sherlock-footer h6 {
    color: var(--sherlock-text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.sherlock-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sherlock-footer a:hover {
    color: var(--sherlock-accent);
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sherlock-hero h1 {
        font-size: 2.5rem;
    }
    
    .sherlock-hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .sherlock-ai-graphics {
        height: 350px;
        margin-top: 2rem;
    }
    
    .brain-svg {
        max-width: 350px;
    }
    
    .sherlock-hero .lead {
        font-size: 1.1rem;
    }
    
    .sherlock-products {
        padding: 60px 0;
    }
    
    .sherlock-product-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .sherlock-hero h1 {
        font-size: 2rem;
    }
    
    .sherlock-brand {
        font-size: 1.2rem;
    }
    
    .sherlock-btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .brain-svg {
        max-width: 300px;
    }
    
    .sherlock-ai-graphics {
        height: 300px;
    }
}

/* Animaciones adicionales */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Efecto de ondas para botones */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-info {
    background: var(--sherlock-secondary);
}

.notification-success {
    background: #22c55e;
}

.notification-warning {
    background: #f59e0b;
}

.notification-error {
    background: #ef4444;
}

/* Indicador de carga */
.loading-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tema claro (futuro) */
.light-theme {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
}

.light-theme .sherlock-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
}

.light-theme .sherlock-brand,
.light-theme .sherlock-header .nav-link {
    color: #1e293b !important;
}

.light-theme .sherlock-product-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.light-theme .sherlock-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e2e8f0;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegación por teclado */
.sherlock-btn-primary:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--sherlock-accent);
    outline-offset: 2px;
}

/* Estados de hover mejorados */
.sherlock-product-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--sherlock-accent);
}

/* Mejoras para pantallas de alta resolución */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sherlock-product-icon {
        background-size: contain;
    }
}

/* Estilos específicos para las tarjetas de productos */
.sherlock-products .sherlock-product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
}

.sherlock-products .sherlock-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sherlock-assistant-card {
    border-top: 4px solid #007bff;
}

.sherlock-messenger-card {
    border-top: 4px solid #ffc107;
}

.product-header {
    padding: 2rem 2rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sherlock-product-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.sherlock-product-icon img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sherlock-product-card:hover .sherlock-product-icon img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: pulse-green 2s infinite;
    z-index: 10;
    transform: translateY(-5px);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        transform: translateY(-5px);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
        transform: translateY(-8px);
    }
    100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        transform: translateY(-5px);
    }
}

.product-content {
    padding: 1rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.product-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #495057;
}

.product-features li i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.product-footer {
    padding: 1rem 2rem 2rem;
    margin-top: auto;
}

.product-footer .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.product-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} 