/* Soluciones360 - Main Stylesheet */

:root {
    --primary: #198754;
    --primary-light: #20c997;
    --primary-dark: #146c43;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* General */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #212529;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #20c997 50%, #0dcaf0 100%);
    color: white;
    padding: 4rem 0;
    margin: -1.5rem -1rem 2rem -1rem;
    border-radius: 0 0 2rem 2rem;
}

.hero-section .btn-light {
    color: var(--primary);
    border: none;
}

.hero-section .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
}

/* Card Styles */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Stats */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(25, 135, 84, 0.95) !important;
}

.navbar .nav-link {
    font-weight: 500;
}

.navbar .nav-link.active {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 12px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background: #f0fdf4;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.6rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-success {
    background: var(--primary);
    border: none;
}

.btn-success:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.page-link {
    border-radius: 10px !important;
    margin: 0 2px;
    color: var(--primary);
    border: 1.5px solid #e2e8f0;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
}

/* Cards */
.card {
    border-radius: 12px;
}

.rounded-4 {
    border-radius: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
        margin: -1rem -0.75rem 1.5rem -0.75rem;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }

    .price-tag {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Print */
@media print {
    .navbar, .whatsapp-float, footer {
        display: none !important;
    }
}
