/**
 * WEBZI COMPONENTS CSS
 * Sistema de diseño reutilizable para Webzi
 * Versión: 1.2
 *
 * Contenido:
 * 1. Variables CSS (Design Tokens)
 * 2. Sistema de Botones
 * 3. Animaciones Base
 * 4. Floating Cards
 * 5. Logos Section
 * 6. Utilidades
 *
 * Actualización v1.2:
 * - Añadido --webzi-gray-700
 * - Estilos de sección consistentes
 */

/* ============================================
   1. VARIABLES CSS - Design Tokens
============================================ */
:root {
    /* Colores Webzi */
    --webzi-primary: #7b1fa2;
    --webzi-primary-light: #9c4dcc;
    --webzi-primary-dark: #4a0072;
    --webzi-secondary: #6c63ff;
    --webzi-accent: #00d4ff;
    --webzi-yellow: #ffd700;
    --webzi-green: #00e676;
    --webzi-red: #ff5252;

    /* Neutrales */
    --webzi-dark: #0f172a;
    --webzi-gray-900: #1e293b;
    --webzi-gray-800: #334155;
    --webzi-gray-700: #374151;
    --webzi-gray-600: #475569;
    --webzi-gray-500: #64748b;
    --webzi-gray-400: #94a3b8;
    --webzi-gray-200: #e2e8f0;
    --webzi-gray-100: #f1f5f9;
    --webzi-gray-50: #f8fafc;
    --webzi-white: #ffffff;

    /* Gradientes */
    --webzi-gradient-primary: linear-gradient(135deg, var(--webzi-primary) 0%, var(--webzi-secondary) 100%);
    --webzi-gradient-hero: radial-gradient(circle at 90% 10%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
                          radial-gradient(circle at 10% 80%, rgba(123, 31, 162, 0.08) 0%, transparent 50%),
                          radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);

    /* Sombras */
    --webzi-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --webzi-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --webzi-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --webzi-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --webzi-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --webzi-shadow-glow: 0 10px 40px rgba(123, 31, 162, 0.25);
    --webzi-shadow-glow-strong: 0 15px 40px rgba(123, 31, 162, 0.35);

    /* Bordes */
    --webzi-radius-sm: 8px;
    --webzi-radius-md: 12px;
    --webzi-radius-lg: 16px;
    --webzi-radius-xl: 24px;
    --webzi-radius-2xl: 32px;
    --webzi-radius-full: 9999px;

    /* Transiciones */
    --webzi-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --webzi-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --webzi-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --webzi-transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   2. SISTEMA DE BOTONES
============================================ */
.webzi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--webzi-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--webzi-transition-base);
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.5;
}

.webzi-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.3);
}

/* Botón Primario */
.webzi-btn-primary {
    background: var(--webzi-gradient-primary);
    color: var(--webzi-white);
    box-shadow: var(--webzi-shadow-glow);
}

.webzi-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--webzi-transition-slow);
}

.webzi-btn-primary:hover::before {
    left: 100%;
}

.webzi-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--webzi-shadow-glow-strong);
    color: var(--webzi-white);
    text-decoration: none;
}

.webzi-btn-primary:active {
    transform: translateY(-1px);
}

.webzi-btn-primary i {
    transition: transform var(--webzi-transition-base);
}

.webzi-btn-primary:hover i {
    transform: translateX(4px);
}

/* Botón Outline */
.webzi-btn-outline {
    background: transparent;
    color: var(--webzi-dark);
    border: 2px solid var(--webzi-gray-200);
}

.webzi-btn-outline:hover {
    border-color: var(--webzi-primary);
    color: var(--webzi-primary);
    background: rgba(123, 31, 162, 0.05);
    text-decoration: none;
}

.webzi-btn-outline:active {
    background: rgba(123, 31, 162, 0.1);
}

/* Botón Secundario */
.webzi-btn-secondary {
    background: var(--webzi-gray-100);
    color: var(--webzi-dark);
    border: 1px solid var(--webzi-gray-200);
}

.webzi-btn-secondary:hover {
    background: var(--webzi-gray-200);
    color: var(--webzi-dark);
    text-decoration: none;
}

/* Botón Ghost */
.webzi-btn-ghost {
    background: transparent;
    color: var(--webzi-primary);
    padding: 14px 16px;
}

.webzi-btn-ghost:hover {
    background: rgba(123, 31, 162, 0.05);
    text-decoration: none;
}

/* Botón Blanco (para fondos oscuros) */
.webzi-btn-white {
    background: var(--webzi-white);
    color: var(--webzi-primary);
    box-shadow: var(--webzi-shadow-lg);
}

.webzi-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--webzi-shadow-xl);
    color: var(--webzi-primary);
    text-decoration: none;
}

/* Botón Ghost Blanco (para fondos oscuros) */
.webzi-btn-ghost-white {
    background: transparent;
    color: var(--webzi-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.webzi-btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--webzi-white);
    color: var(--webzi-white);
    text-decoration: none;
}

/* Tamaños */
.webzi-btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.webzi-btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.webzi-btn-xl {
    padding: 20px 44px;
    font-size: 1.2rem;
}

/* Ancho completo */
.webzi-btn-block {
    width: 100%;
}

/* Botón con icono solamente */
.webzi-btn-icon {
    padding: 14px;
    width: 48px;
    height: 48px;
}

.webzi-btn-icon.webzi-btn-sm {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.webzi-btn-icon.webzi-btn-lg {
    padding: 16px;
    width: 56px;
    height: 56px;
}

/* ============================================
   3. ANIMACIONES BASE
============================================ */
@keyframes webziFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes webziShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

@keyframes webziScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Clases de animación */
.webzi-animate-fade-in {
    animation: webziFadeIn 0.5s ease forwards;
}

.webzi-animate-fade-in-up {
    animation: webziFadeInUp 0.6s ease forwards;
}

.webzi-animate-fade-in-down {
    animation: webziFadeInDown 0.6s ease forwards;
}

.webzi-animate-float {
    animation: webziFloat 6s infinite ease-in-out;
}

.webzi-animate-pulse {
    animation: webziPulse 2s infinite;
}

/* Delays de animación */
.webzi-delay-100 { animation-delay: 0.1s; }
.webzi-delay-200 { animation-delay: 0.2s; }
.webzi-delay-300 { animation-delay: 0.3s; }
.webzi-delay-400 { animation-delay: 0.4s; }
.webzi-delay-500 { animation-delay: 0.5s; }

/* ============================================
   4. FLOATING CARDS
============================================ */
.webzi-floating-card {
    position: absolute;
    background: var(--webzi-white);
    border-radius: var(--webzi-radius-lg);
    padding: 16px;
    box-shadow: var(--webzi-shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: webziFloat 6s infinite ease-in-out;
    border: 1px solid var(--webzi-gray-100);
    z-index: 10;
}

.webzi-floating-card.card-1 {
    animation-delay: 0s;
}

.webzi-floating-card.card-2 {
    animation-delay: -2s;
}

.webzi-floating-card.card-3 {
    animation-delay: -4s;
}

.webzi-floating-icon {
    width: 44px;
    height: 44px;
    background: var(--webzi-gradient-primary);
    border-radius: var(--webzi-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--webzi-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.webzi-floating-icon.icon-sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.webzi-floating-icon.icon-lg {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
}

.webzi-floating-text {
    font-size: 0.85rem;
}

.webzi-floating-text strong {
    display: block;
    font-weight: 700;
    color: var(--webzi-dark);
    line-height: 1.3;
}

.webzi-floating-text span {
    color: var(--webzi-gray-400);
    font-size: 0.8rem;
}

/* ============================================
   5. LOGOS SECTION
============================================ */
.webzi-logos-section {
    padding: 60px 0;
    background: var(--webzi-white);
}

.webzi-logos-title {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--webzi-gray-400);
    margin-bottom: 32px;
    font-weight: 600;
}

.webzi-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.webzi-logo-item {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--webzi-transition-base);
    cursor: pointer;
}

.webzi-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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

/* Responsive logos */
@media (max-width: 768px) {
    .webzi-logos-section {
        padding: 40px 0;
    }

    .webzi-logos-grid {
        gap: 24px;
    }

    .webzi-logo-item img {
        height: 32px;
    }
}

/* ============================================
   6. UTILIDADES
============================================ */

/* Badges */
.webzi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--webzi-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.webzi-badge-primary {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(108, 99, 255, 0.1) 100%);
    color: var(--webzi-primary);
    border: 1px solid rgba(123, 31, 162, 0.1);
}

.webzi-badge-yellow {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: var(--webzi-dark);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.webzi-badge-green {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(0, 230, 118, 0.05) 100%);
    color: #00a854;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

/* Feature Pills */
.webzi-feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--webzi-white);
    padding: 10px 18px;
    border-radius: var(--webzi-radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--webzi-gray-800);
    border: 1px solid var(--webzi-gray-200);
    transition: var(--webzi-transition-base);
}

.webzi-feature-pill:hover {
    border-color: var(--webzi-primary);
    box-shadow: var(--webzi-shadow-md);
    transform: translateY(-2px);
}

.webzi-feature-pill i {
    color: var(--webzi-green);
}

/* Section Headers */
.webzi-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.webzi-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(108, 99, 255, 0.1) 100%);
    color: var(--webzi-primary);
    padding: 8px 16px;
    border-radius: var(--webzi-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(123, 31, 162, 0.1);
}

.webzi-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--webzi-dark);
    margin-bottom: 16px;
}

.webzi-section-subtitle {
    font-size: 1.125rem;
    color: var(--webzi-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gradient Text */
.webzi-gradient-text {
    background: var(--webzi-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards base */
.webzi-card {
    background: var(--webzi-white);
    border-radius: var(--webzi-radius-xl);
    border: 1px solid var(--webzi-gray-200);
    transition: var(--webzi-transition-base);
}

.webzi-card:hover {
    box-shadow: var(--webzi-shadow-lg);
    border-color: var(--webzi-primary);
}

.webzi-card-elevated {
    box-shadow: var(--webzi-shadow-md);
}

.webzi-card-elevated:hover {
    transform: translateY(-5px);
    box-shadow: var(--webzi-shadow-xl);
}

/* Skeleton loading */
.webzi-skeleton {
    background: linear-gradient(90deg, var(--webzi-gray-200) 25%, var(--webzi-gray-100) 50%, var(--webzi-gray-200) 75%);
    background-size: 200% 100%;
    animation: webziShimmer 1.5s infinite;
    border-radius: var(--webzi-radius-md);
}

/* Responsive utilities */
@media (max-width: 992px) {
    .webzi-floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .webzi-btn-lg {
        padding: 16px 24px;
        font-size: 1rem;
    }

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

    .webzi-feature-pill {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .webzi-btn-lg {
        width: 100%;
        max-width: 320px;
    }
}
