/**
 * Modern Styles - TrabajoChile
 * Inspired by React/Tailwind original design
 */

/* ============================================
   VARIABLES Y COLORES
   ============================================ */
:root {
    /* Colores principales */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    
    --emerald-50: #ecfdf5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    
    --yellow-400: #facc15;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   HERO SECTION MODERNO
   ============================================ */
.hero-section-modern {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--blue-50) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Background Decorations */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-decoration-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.hero-decoration-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.hero-decoration-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-50);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--primary-200);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--slate-600);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    z-index: 10;
}

.floating-card-1 {
    top: -1.5rem;
    left: -1.5rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card-2 {
    bottom: -1.5rem;
    right: -1.5rem;
    animation: float 3s ease-in-out infinite 1s;
}

/* ============================================
   GLASSMORPHISM HEADER
   ============================================ */
.glass-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
}

.logo-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: 0.75rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.logo-gradient:hover {
    transform: scale(1.05);
}

/* ============================================
   PROFESSIONAL CARDS PREMIUM
   ============================================ */
.professional-card-premium {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.professional-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.professional-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.professional-card-premium:hover::before {
    transform: scaleX(1);
}

.profile-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
    border: 2px solid white;
    box-shadow: var(--shadow-md);
}

.profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.online-indicator i {
    font-size: 10px;
    color: white;
}

/* Category Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.professional-card-premium:hover .category-icon {
    transform: scale(1.1);
}

.category-home {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.category-professional {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
}

.category-technical {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

/* Rating Badge */
.rating-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(251, 191, 36, 0.6);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: var(--yellow-400);
    display: flex;
    gap: 2px;
}

/* Social Icons */
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.social-icon:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.social-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-linkedin {
    background: linear-gradient(135deg, #0077b5, #00669c);
}

/* Description Box */
.description-box {
    background: rgba(248, 250, 252, 0.5);
    border-left: 4px solid var(--primary-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.5;
}

/* ============================================
   CATEGORY CARDS INTERACTIVAS
   ============================================ */
.category-card-interactive {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card-interactive:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.category-card-interactive:hover::before {
    opacity: 1;
}

.category-card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.category-card-interactive:hover .category-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   FILTER SECTION MODERNA
   ============================================ */
.filter-section-modern {
    background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.search-input-modern {
    position: relative;
}

.search-input-modern input {
    padding-left: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-300);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.search-input-modern input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}

/* Filter Chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-50);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--primary-200);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: var(--blue-100);
    transform: translateY(-1px);
}

.filter-chip-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.filter-chip-purple {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

/* ============================================
   BUTTONS MODERNOS
   ============================================ */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
}
/*
.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
}
*/
/* ============================================
   STATS SECTION
   ============================================ */
.stats-section-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-slate-900 { color: var(--slate-900); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-400 { color: var(--slate-400); }

.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }

.gradient-blue {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.gradient-emerald {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
}

.gradient-orange {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-decoration {
        width: 200px !important;
        height: 200px !important;
    }
    
    .floating-card {
        display: none;
    }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
