/* INGESA S.A. - Main Stylesheet */

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

:root {
    --ingesa-primary: #dc2626;
    --ingesa-secondary: #b91c1c;
    --ingesa-light: #fee2e2;
    --ingesa-dark: #991b1b;
    --ingesa-accent: #f59e0b;
    --ingesa-success: #10b981;
    --ingesa-warning: #f59e0b;
    --ingesa-error: #ef4444;
    --ingesa-info: #3b82f6;
    
    --font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Content padding for sections that need space from edges while keeping backgrounds full-width */
.content-section {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 640px) {
    .content-section {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 768px) {
    .content-section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .content-section {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1280px) {
    .content-section {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Reduced footer padding - Less side margins */
.footer-content-section {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .footer-content-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .footer-content-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-content-section {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .footer-content-section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Enhanced Container Spacing - Better margins from browser edges */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem; /* Increased from 1.5rem to 2rem */
    padding-right: 2rem; /* Increased from 1.5rem to 2rem */
}

@media (min-width: 640px) {
    .container {
        padding-left: 2.5rem; /* Increased from 2rem to 2.5rem */
        padding-right: 2.5rem; /* Increased from 2rem to 2.5rem */
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 3rem; /* Increased from 2.5rem to 3rem */
        padding-right: 3rem; /* Increased from 2.5rem to 3rem */
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 4rem; /* Increased from 3rem to 4rem */
        padding-right: 4rem; /* Increased from 3rem to 4rem */
    }
}

@media (min-width: 1280px) {
    .container {
        padding-left: 5rem; /* Increased from 3.5rem to 5rem */
        padding-right: 5rem; /* Increased from 3.5rem to 5rem */
    }
}

/* Override default Tailwind container for consistent spacing */
.container.mx-auto {
    padding-left: 2rem !important; /* Increased from 1.5rem */
    padding-right: 2rem !important; /* Increased from 1.5rem */
}

@media (min-width: 640px) {
    .container.mx-auto {
        padding-left: 2.5rem !important; /* Increased from 2rem */
        padding-right: 2.5rem !important; /* Increased from 2rem */
    }
}

@media (min-width: 768px) {
    .container.mx-auto {
        padding-left: 3rem !important; /* Increased from 2.5rem */
        padding-right: 3rem !important; /* Increased from 2.5rem */
    }
}

@media (min-width: 1024px) {
    .container.mx-auto {
        padding-left: 4rem !important; /* Increased from 3rem */
        padding-right: 4rem !important; /* Increased from 3rem */
    }
}

@media (min-width: 1280px) {
    .container.mx-auto {
        padding-left: 5rem !important; /* Increased from 3.5rem */
        padding-right: 5rem !important; /* Increased from 3.5rem */
    }
}

/* Additional spacing for main content sections */
.main-section {
    padding-left: 1.5rem; /* Increased from 1rem */
    padding-right: 1.5rem; /* Increased from 1rem */
}

@media (min-width: 768px) {
    .main-section {
        padding-left: 2.5rem; /* Increased from 1.5rem */
        padding-right: 2.5rem; /* Increased from 1.5rem */
    }
}

/* Full-width sections that need edge spacing */
.full-width-section {
    padding-left: 2rem; /* Increased from 1.5rem */
    padding-right: 2rem; /* Increased from 1.5rem */
}

@media (min-width: 768px) {
    .full-width-section {
        padding-left: 3rem; /* Increased from 2.5rem */
        padding-right: 3rem; /* Increased from 2.5rem */
    }
}

@media (min-width: 1024px) {
    .full-width-section {
        padding-left: 4rem; /* Increased from 3rem */
        padding-right: 4rem; /* Increased from 3rem */
    }
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover {
    background-color: var(--ingesa-dark);
}

.btn-primary:focus {
    ring-color: var(--ingesa-primary);
}

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

.btn-secondary:hover {
    background-color: var(--ingesa-primary);
}

.btn-secondary:focus {
    ring-color: var(--ingesa-secondary);
}

.btn-outline {
    border-color: var(--ingesa-primary);
    color: var(--ingesa-primary);
    background-color: transparent;
}

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

.btn-outline:focus {
    ring-color: var(--ingesa-primary);
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-success:focus {
    ring-color: #10b981;
}

.btn-warning {
    background-color: #d97706;
    color: white;
}

.btn-warning:hover {
    background-color: #b45309;
}

.btn-warning:focus {
    ring-color: #f59e0b;
}

.btn-error {
    background-color: #dc2626;
    color: white;
}

.btn-error:hover {
    background-color: #b91c1c;
}

.btn-error:focus {
    ring-color: #ef4444;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-loading {
    position: relative;
}

.btn-loading .spinner {
    margin-right: 0.5rem;
}

/* Product Card Button Styles - Smaller and more refined */
.product-card-actions .btn {
    padding: 0.375rem 0.75rem; /* Reduced from 0.5rem 1rem */
    font-size: 0.75rem; /* Reduced from 0.875rem */
    font-weight: 500;
    border-radius: 0.25rem; /* Slightly smaller radius */
    gap: 0.25rem; /* Space between icon and text */
}

.product-card-actions .btn i {
    font-size: 0.7rem; /* Smaller icons */
}

.product-card-actions {
    gap: 0.5rem; /* Reduced gap between buttons */
}

/* Enhanced button hover states for product cards */
.product-card-actions .btn-primary {
    background: linear-gradient(135deg, var(--ingesa-primary), var(--ingesa-secondary));
    border: none;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.product-card-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--ingesa-dark), var(--ingesa-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.product-card-actions .btn-outline {
    border: 1px solid #d1d5db;
    color: #6b7280;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-card-actions .btn-outline:hover {
    border-color: var(--ingesa-primary);
    color: var(--ingesa-primary);
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

/* Product Details Tabs Enhancement */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
}

.tab-btn:hover {
    color: var(--ingesa-primary);
    background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
    color: var(--ingesa-primary);
    border-bottom-color: var(--ingesa-primary);
    background: white;
    font-weight: 600;
}

.tab-content {
    min-height: 200px;
    background: white;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* Product Quote Section - Refined Button Styling */
.product-quote-section .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.product-quote-section .btn-primary {
    background: var(--ingesa-primary);
    border-color: var(--ingesa-primary);
    color: white;
}

.product-quote-section .btn-primary:hover {
    background: var(--ingesa-dark);
    border-color: var(--ingesa-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.product-quote-section .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.product-quote-section .btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Form Components */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-input,
.form-select,
.form-textarea {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-ingesa-primary focus:border-ingesa-primary transition-colors;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    @apply outline-none ring-2 ring-ingesa-primary ring-opacity-50;
}

.form-help {
    @apply mt-1 text-xs text-gray-500;
}

.form-error {
    @apply border-red-300 focus:ring-red-500 focus:border-red-500;
}

.form-error-message {
    @apply mt-1 text-xs text-red-600;
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
    @apply flex items-center cursor-pointer;
}

.form-checkbox input,
.form-radio input {
    @apply sr-only;
}

.checkmark,
.radiomark {
    @apply inline-block w-4 h-4 border border-gray-300 rounded mr-2 transition-all duration-200;
}

.radiomark {
    @apply rounded-full;
}

.form-checkbox input:checked + .checkmark {
    @apply bg-ingesa-primary border-ingesa-primary;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
}

.form-radio input:checked + .radiomark {
    @apply bg-ingesa-primary border-ingesa-primary;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

/* Card Components */
.product-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card-image {
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badges {
    @apply absolute top-2 left-2 space-y-1;
}

.product-card-content {
    @apply p-4;
}

.product-card-title {
    @apply text-lg font-semibold text-gray-900 mb-1;
}

.product-card-brand {
    @apply text-sm text-ingesa-primary font-medium mb-2;
}

.product-card-description {
    @apply text-sm text-gray-600 mb-4;
}

.product-card-actions {
    @apply flex space-x-2;
    gap: 0.5rem; /* Reduced gap between buttons */
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #e5e7eb;
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-card-icon {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card-link {
    color: var(--ingesa-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.service-card-link:hover {
    color: var(--ingesa-secondary);
}

.alert {
    @apply flex items-start p-4 rounded-lg border-l-4;
}

.alert-success {
    @apply bg-green-50 border-green-500 text-green-800;
}

.alert-error {
    @apply bg-red-50 border-red-500 text-red-800;
}

.alert-warning {
    @apply bg-yellow-50 border-yellow-500 text-yellow-800;
}

.alert-info {
    @apply bg-blue-50 border-blue-500 text-blue-800;
}

.alert-icon {
    @apply w-5 h-5 mr-3 flex-shrink-0;
}

.alert-content {
    @apply flex-1;
}

.alert-title {
    @apply font-semibold mb-1;
}

.alert-message {
    @apply text-sm opacity-90;
}

.alert-close {
    @apply ml-3 p-1 hover:bg-black hover:bg-opacity-10 rounded transition-colors;
}

/* Badge Components */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-primary {
    @apply bg-ingesa-primary text-white;
}

.badge-secondary {
    @apply bg-ingesa-secondary text-white;
}

.badge-success {
    @apply bg-green-600 text-white;
}

.badge-warning {
    @apply bg-yellow-600 text-white;
}

.badge-error {
    @apply bg-red-600 text-white;
}

.badge-info {
    @apply bg-blue-600 text-white;
}

.badge-new {
    @apply bg-gradient-to-r from-purple-500 to-pink-500 text-white;
}

.badge-featured {
    @apply bg-gradient-to-r from-yellow-400 to-orange-500 text-white;
}

/* Loading Components */
.spinner {
    @apply inline-block w-4 h-4 border-2 border-gray-300 border-t-ingesa-primary rounded-full animate-spin;
}

.loading-bar {
    @apply w-full bg-gray-200 rounded-full h-2;
}

.loading-bar-progress {
    @apply bg-ingesa-primary h-2 rounded-full transition-all duration-300;
}

.skeleton-loader {
    @apply animate-pulse;
}

.skeleton-line {
    @apply bg-gray-300 rounded;
}

.skeleton-title {
    @apply h-4 mb-2;
}

.skeleton-text {
    @apply h-3 mb-2;
}

.skeleton-text.short {
    @apply w-3/4;
}

/* Modal Components */
.modal {
    @apply fixed inset-0 z-50 flex items-center justify-center p-4 opacity-0 invisible transition-all duration-300;
}

.modal.show {
    @apply opacity-100 visible;
}

.modal-backdrop {
    @apply absolute inset-0 bg-black bg-opacity-50;
}

.modal-content {
    @apply relative bg-white rounded-lg shadow-xl max-w-md w-full max-h-screen overflow-y-auto;
}

.modal-header {
    @apply flex items-center justify-between p-4 border-b border-gray-200;
}

.modal-title {
    @apply text-lg font-semibold text-gray-900;
}

.modal-close {
    @apply p-1 hover:bg-gray-100 rounded transition-colors;
}

.modal-body {
    @apply p-4;
}

.modal-footer {
    @apply flex justify-end space-x-2 p-4 border-t border-gray-200;
}

/* User Details Modal Styles */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row label {
    font-weight: 500;
    color: #374151;
    width: 33.333333%;
}

.detail-row span {
    color: #111827;
    width: 66.666667%;
    text-align: right;
}

/* Tab Components */
.tabs {
    @apply w-full;
}

.tab-nav {
    @apply flex border-b border-gray-200;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.tab-btn {
    @apply px-4 py-2 text-sm font-medium text-gray-500 hover:text-gray-700 border-b-2 border-transparent hover:border-gray-300 transition-colors;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.tab-btn:hover {
    color: var(--ingesa-primary);
    background: #f8fafc;
}

.tab-btn.active {
    color: var(--ingesa-primary);
    border-bottom-color: var(--ingesa-primary);
    background: transparent;
}

.tab-content {
    @apply mt-4;
    min-height: 200px;
}

.tab-pane {
    @apply hidden;
}

.tab-pane.active {
    @apply block;
}

/* Pagination Components */
.pagination {
    @apply flex items-center justify-center gap-1 flex-nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.pagination-btn {
    @apply inline-flex items-center gap-1 px-2 py-2 text-sm font-medium text-gray-600 hover:text-ingesa-primary hover:bg-ingesa-light rounded-lg border border-gray-300 hover:border-ingesa-primary transition-all duration-200 whitespace-nowrap flex-shrink-0;
    min-width: auto;
}

.pagination-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.pagination-btn.disabled {
    @apply opacity-50 cursor-not-allowed pointer-events-none;
}

.pagination-numbers {
    @apply flex items-center gap-1 flex-shrink-0;
}

.pagination-number {
    @apply inline-flex items-center justify-center w-8 h-8 text-sm font-medium text-gray-600 hover:text-ingesa-primary hover:bg-ingesa-light rounded-lg border border-gray-300 hover:border-ingesa-primary transition-all duration-200 flex-shrink-0;
}

.pagination-number.active {
    @apply bg-ingesa-primary text-white border-ingesa-primary hover:bg-ingesa-dark;
}

.pagination-dots {
    @apply text-gray-500 px-1 flex-shrink-0;
}

/* Filter Components */
.filter-bar {
    @apply flex flex-wrap items-center gap-4 p-4 bg-white rounded-lg shadow-sm;
}

.filter-group {
    @apply flex items-center space-x-2;
}

.filter-label {
    @apply text-sm font-medium text-gray-700;
}

.filter-select {
    @apply text-sm border-gray-300 rounded focus:ring-ingesa-primary focus:border-ingesa-primary;
}

.filter-clear {
    @apply ml-auto;
}

/* Product Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    padding: 2rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filters-sidebar h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.filters-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1px;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.clear-filters-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

/* Filter Results Counter */
.filter-results {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Enhanced Animations and Polish */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

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

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

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Product Card Animations */
.product-card {
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: perspective(1000px) rotateX(-2deg) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced Service Card Animations */
.service-card {
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-card-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Enhanced Form Styles */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navigation Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

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

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

/* Enhanced Footer Animations */
footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    transform: translateX(5px);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-4px);
    }
    
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Enhancements */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Enhanced Utility Classes */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-colored {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        @apply px-4;
    }
    
    .product-card-actions {
        @apply flex-col space-y-2 space-x-0;
    }
    
    .filter-bar {
        @apply flex-col items-stretch;
    }
    
    .filter-group {
        @apply flex-col space-x-0 space-y-1;
    }
    
    .pagination {
        @apply gap-1 justify-start overflow-x-auto;
        min-height: 3rem;
        padding: 0.5rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .pagination::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .pagination-btn {
        @apply px-2 py-1 text-xs flex-shrink-0;
        min-width: auto;
    }
    
    .pagination-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .pagination-number {
        @apply w-7 h-7 text-xs flex-shrink-0;
        min-width: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-block {
        display: block !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .shadow-lg,
    .shadow-md,
    .shadow {
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --ingesa-primary: #3b82f6;
        --ingesa-secondary: #60a5fa;
        --ingesa-light: #1e3a8a;
        --ingesa-dark: #1e40af;
    }
}

/* Accessibility */
.sr-only {
    @apply absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0;
}

.focus-visible:focus {
    @apply outline-none ring-2 ring-ingesa-primary ring-opacity-50;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        @apply border-2;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        @apply border-2;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Admin Panel Styles */
.admin-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    margin-bottom: 20px;
}

.login-header h1 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.login-form {
    text-align: left;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.admin-body {
    background-color: #f8fafc;
    font-family: var(--font-family);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo .logo-image {
    height: 40px;
}

.admin-logo .logo-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

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

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.btn-icon:hover {
    background-color: #f1f5f9;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-button:hover {
    background-color: #f1f5f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8fafc;
}

.dropdown-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 8px 0;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: 80px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.notifications-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.notification-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notifications-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.admin-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e2e8f0;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.nav-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.nav-item.expanded .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--admin-sidebar-bg);
    display: none;
}

.nav-item.expanded .nav-submenu,
.nav-item.active .nav-submenu {
    display: block;
}

.nav-sublink {
    display: block;
    padding: 8px 20px 8px 52px;
    color: var(--admin-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-sublink:hover {
    color: var(--admin-text-primary);
    background-color: var(--admin-hover);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Modal Styles for Admin */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--admin-card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--admin-text-primary);
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--admin-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--admin-border);
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--admin-bg-tertiary);
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: var(--admin-accent);
    background-color: var(--admin-hover);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    color: var(--admin-text-muted);
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--admin-text-primary);
}

.upload-hint {
    font-size: 12px;
    color: var(--admin-text-muted);
}

/* Image Preview Styles */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.image-preview-item {
    position: relative;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--admin-card-bg);
}

.image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--admin-error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.image-remove:hover {
    opacity: 1;
}

/* Current Images Styles */
.current-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.current-image-item {
    position: relative;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--admin-card-bg);
}

.current-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.current-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--admin-error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-image-remove:hover {
    background-color: #dc2626;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--admin-card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-content {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.toast-message {
    color: var(--admin-text-primary);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--admin-text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--admin-text-primary);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Admin Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--admin-text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background-color: var(--admin-card-bg);
    color: var(--admin-text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Client Detail Styles */
.client-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.detail-item {
    padding: 12px;
    background-color: var(--admin-bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--admin-border);
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--admin-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item span {
    color: var(--admin-text-primary);
    font-size: 14px;
    word-break: break-word;
}

/* Admin Table and Action Button Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--admin-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background: var(--admin-bg-secondary);
}

.admin-table.products-table th,
.admin-table.products-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    font-size: 13px;
}

.admin-table th {
    font-weight: 600;
    color: var(--admin-text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--admin-text-primary);
    vertical-align: top;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    color: var(--admin-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-icon:hover {
    background: var(--admin-hover);
    border-color: var(--admin-accent);
    color: var(--admin-accent);
}

.btn-icon.btn-danger {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.btn-icon.btn-danger:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.table-container {
    background: var(--admin-card-bg);
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-sent {
    background: #dbeafe;
    color: #1e40af;
}

.badge-viewed {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-accepted {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-expired {
    background: #f3f4f6;
    color: #374151;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Admin Products Table Specific Styles */
.admin-table.products-table {
    table-layout: fixed;
    width: 100%;
}

.admin-table.products-table th:nth-child(1), /* Imagen */
.admin-table.products-table td:nth-child(1) {
    width: 22px;
    text-align: center;
}

.admin-table.products-table th:nth-child(2), /* Código */
.admin-table.products-table td:nth-child(2) {
    width: 28px;
}

.admin-table.products-table th:nth-child(3), /* Nombre */
.admin-table.products-table td:nth-child(3) {
    width: 28px;
}

.admin-table.products-table th:nth-child(4), /* Marca */
.admin-table.products-table td:nth-child(4) {
    width: 28px;
}

.admin-table.products-table th:nth-child(5), /* Familia */
.admin-table.products-table td:nth-child(5) {
    width: 28px;
}

.admin-table.products-table th:nth-child(6), /* Estado */
.admin-table.products-table td:nth-child(6) {
    width: 28px;
    text-align: center;
}

.admin-table.products-table th:nth-child(7), /* Archivos */
.admin-table.products-table td:nth-child(7) {
    width: 28px;
    text-align: center;
}

.admin-table.products-table th:nth-child(8), /* Fecha */
.admin-table.products-table td:nth-child(8) {
    width: 28px;
}

.admin-table.products-table th:nth-child(9), /* Acciones */
.admin-table.products-table td:nth-child(9) {
    width: 28px;
    text-align: center;
}

/* Product table specific styles */
.product-thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--admin-border);
}

/* Users Table Specific Styles */
.admin-table.users-table {
    table-layout: fixed;
}

.admin-table.users-table th,
.admin-table.users-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    font-size: 13px;
    word-wrap: break-word;
    overflow: hidden;
}

.admin-table.users-table th:nth-child(1), /* Usuario */
.admin-table.users-table td:nth-child(1) {
    width: 15%;
    min-width: 120px;
}

.admin-table.users-table th:nth-child(2), /* Email */
.admin-table.users-table td:nth-child(2) {
    width: 20%;
    min-width: 150px;
}

.admin-table.users-table th:nth-child(3), /* Empresa */
.admin-table.users-table td:nth-child(3) {
    width: 15%;
    min-width: 100px;
}

.admin-table.users-table th:nth-child(4), /* Rol */
.admin-table.users-table td:nth-child(4) {
    width: 12%;
    min-width: 80px;
}

.admin-table.users-table th:nth-child(5), /* Estado */
.admin-table.users-table td:nth-child(5) {
    width: 10%;
    min-width: 70px;
}

.admin-table.users-table th:nth-child(6), /* Último Acceso */
.admin-table.users-table td:nth-child(6) {
    width: 12%;
    min-width: 90px;
}

.admin-table.users-table th:nth-child(7), /* Registro */
.admin-table.users-table td:nth-child(7) {
    width: 10%;
    min-width: 80px;
}

.admin-table.users-table th:nth-child(8), /* Acciones */
.admin-table.users-table td:nth-child(8) {
    width: 6%;
    min-width: 60px;
    text-align: center;
}

.product-thumb-placeholder {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg-secondary);
    border-radius: 2px;
    border: 1px solid var(--admin-border);
    font-size: 10px;
}

.product-name-cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name-cell strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name-cell small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.admin-content {
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.admin-header-section h1 {
    margin: 0;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color-alpha), var(--secondary-color-alpha));
}

.stat-content h3 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.chart-card canvas {
    height: 300px !important;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Content cards */
.content-card, .info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background-color: #f8fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fef3c7;
    color: #92400e;
}

/* File grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
}

.file-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.file-info p {
    margin: 0 0 4px 0;
    color: #6b7280;
    font-size: 14px;
}

.file-date {
    font-size: 12px;
    color: #9ca3af;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.upload-area {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: var(--ingesa-primary);
    background-color: #f0f9ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.upload-area h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-weight: 600;
}

.upload-area p {
    margin: 0;
    color: #6b7280;
}

.file-input {
    display: none;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-card h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8fafc;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.activity-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-status {
    flex-shrink: 0;
}

.brands-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8fafc;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-color-alpha);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.brand-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Brand Logo Styles for Homepage Banners */
.brand-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 1rem;
}

.brand-logo-image {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-family-banner:hover .brand-logo-image {
    transform: scale(1.1);
}

/* Responsive adjustments for brand logos */
@media (max-width: 768px) {
    .brand-logo-image {
        max-width: 100px;
        max-height: 50px;
    }
    
    .brand-logo-container {
        height: 70px;
    }
}

/* Brand Page Logo Styles */
.brand-page-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brand-page-logo {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .brand-page-logo {
        max-width: 150px;
        max-height: 75px;
    }
}

.filters-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Admin dark theme override for filters */
.admin-body .filters-section {
    background: var(--admin-card-bg);
    color: var(--admin-text);
}

.filters-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.results-info {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

.product-thumb,
.product-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.product-thumb {
    object-fit: cover;
}

.product-thumb-placeholder {
    background: var(--primary-color-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 10px;
}

.pagination-link {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
}

/* Admin theme override for pagination links */
.admin-body .pagination-link {
    background-color: var(--admin-card-bg);
    border-color: var(--admin-border);
    color: var(--admin-text-primary);
}

.admin-body .pagination-link:hover,
.admin-body .pagination-link.active {
    background-color: var(--admin-accent);
    color: white;
    border-color: var(--admin-accent);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.info-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.quote-items-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.quote-items-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.quote-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.quote-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.item-image {
    height: 150px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-placeholder {
    font-size: 40px;
    color: var(--text-muted);
}

.item-content {
    padding: 16px;
}

.item-header {
    margin-bottom: 12px;
}

.item-header h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.item-brand {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.item-details {
    margin-bottom: 12px;
}

.item-details p {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.item-notes {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.quote-timeline {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quote-timeline h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -18px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color-alpha);
}

.timeline-content h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.timeline-content p {
    margin: 0 0 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Login & Register Pages */
.login-page,
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before,
.register-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 0v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
}

.login-container,
.register-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.register-container {
    max-width: 520px;
}

.login-card,
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header,
.register-header {
    margin-bottom: 2rem;
}

.login-header .ingesa-logo,
.register-header .ingesa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-header h1,
.register-header h1 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p,
.register-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.login-form,
.register-form {
    text-align: left;
    margin-bottom: 1.5rem;
}

.login-form .form-group,
.register-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label,
.register-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #1f2937 !important;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-block::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: left 0.5s;
}

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

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.btn-block:active {
    transform: translateY(0);
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer p,
.register-footer p {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #764ba2;
}

.link-secondary {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #667eea;
}

/* Alert Messages for Login/Register */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-icon {
    font-size: 1.25rem;
}

/* Form Row for Register */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Brand Showcase Cards */
.brand-showcase-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.brand-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    transition: opacity 0.3s ease;
    z-index: 1;
}

.brand-showcase-card:hover::before {
    opacity: 0.8;
}

.brand-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.3);
}

.brand-showcase-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-showcase-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-initial {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.brand-info {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.brand-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.brand-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.brand-actions .btn {
    transition: all 0.3s ease;
}

.brand-showcase-card:hover .btn-primary {
    background: white;
    color: #667eea;
    border-color: white;
}

.brand-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 0v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

/* Line clamp utilities for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced product cards */
.product-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

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

.product-card-image {
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Improved sidebar sticky positioning */
.filters-sidebar.sticky {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Enhanced gallery thumbnails */
.gallery-thumbnail.active img {
    border-color: #667eea !important;
    border-width: 3px;
    transform: scale(1.05);
}

/* Border-3 utility */
.border-3 {
    border-width: 3px;
}

/* Enhanced button styles */
.btn-outline {
    border: 2px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    background-color: #f8fafc;
}

/* Improved form controls */
.form-select, .form-input {
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
}

.form-select:focus, .form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Enhanced INGESA Logo Styles */
.ingesa-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ingesa-logo:hover {
    transform: translateY(-1px);
}

/* Logo Image Sizing */
.ingesa-logo-image {
    height: 2rem; /* 32px */
    width: auto;
    max-width: 2rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo Text Styling */
.ingesa-logo-text {
    font-family: 'STIX Two Text', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #374151;
    margin-left: 0.5rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* Size Variants */
.ingesa-logo-sm .ingesa-logo-image {
    height: 1.5rem; /* 24px */
    max-width: 1.5rem;
}

.ingesa-logo-sm .ingesa-logo-text {
    font-size: 1.125rem;
}

.ingesa-logo-md .ingesa-logo-image {
    height: 2rem; /* 32px */
    max-width: 2rem;
}

.ingesa-logo-md .ingesa-logo-text {
    font-size: 1.5rem;
}

.ingesa-logo-lg .ingesa-logo-image {
    height: 2.5rem; /* 40px */
    max-width: 2.5rem;
}

.ingesa-logo-lg .ingesa-logo-text {
    font-size: 1.75rem;
}

.ingesa-logo-xl .ingesa-logo-image {
    height: 3rem; /* 48px */
    max-width: 3rem;
}

.ingesa-logo-xl .ingesa-logo-text {
    font-size: 2rem;
}

/* Dark theme variant */
.ingesa-logo-dark .ingesa-logo-text {
    color: #ffffff;
}

/* Responsive adjustments
}

.ingesa-logo span {
    vertical-align: middle;
    line-height: 1;
}

/* Product Quote Section - Refined Button Styling */
.product-quote-section .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.product-quote-section .btn-primary {
    background: var(--ingesa-primary);
    border-color: var(--ingesa-primary);
    color: white;
}

.product-quote-section .btn-primary:hover {
    background: var(--ingesa-dark);
    border-color: var(--ingesa-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.product-quote-section .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.product-quote-section .btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Related products section improvements */
.related-products-section .product-card {
    transition: all 0.2s ease;
}

.related-products-section .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Floating Chat Bubble */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Mobile Menu Scrolling Fix */
#mobile-menu {
    max-height: calc(100vh - 150px); /* Account for header height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

@media (max-height: 600px) {
    #mobile-menu {
        max-height: calc(100vh - 120px);
    }
}

@media (max-height: 500px) {
    #mobile-menu {
        max-height: calc(100vh - 100px);
    }
}

/* ===================================
   DARK THEME FOR ADMIN PANEL
   =================================== */

/* Dark theme variables */
body.admin-body {
    --admin-bg-primary: #0f172a;
    --admin-bg-secondary: #1e293b;
    --admin-bg-tertiary: #334155;
    --admin-text-primary: #f1f5f9;
    --admin-text-secondary: #cbd5e1;
    --admin-text-muted: #94a3b8;
    --admin-border: #334155;
    --admin-hover: #475569;
    --admin-accent: #3b82f6;
    --admin-accent-hover: #2563eb;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-error: #ef4444;
    --admin-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Admin body dark background */
.admin-body {
    background-color: var(--admin-bg-primary);
    color: var(--admin-text-primary);
}

/* Admin header dark theme */
.admin-header {
    background-color: var(--admin-bg-secondary);
    border-bottom: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
}

.admin-header .admin-logo .logo-text {
    color: var(--admin-text-primary);
}

.admin-header .user-name {
    color: var(--admin-text-primary);
}

.admin-header .btn-icon {
    color: var(--admin-text-secondary);
    background-color: transparent;
}

.admin-header .btn-icon:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
}

.admin-header .notification-badge {
    background-color: var(--admin-error);
}

/* User dropdown dark theme */
.admin-body .user-dropdown {
    background-color: var(--admin-bg-secondary) !important;
    border: 1px solid var(--admin-border) !important;
    box-shadow: var(--admin-shadow) !important;
}

.admin-body .user-dropdown .dropdown-item {
    color: var(--admin-text-secondary) !important;
}

.admin-body .user-dropdown .dropdown-item:hover {
    background-color: var(--admin-hover) !important;
    color: var(--admin-text-primary) !important;
}

.admin-body .dropdown-divider {
    border-color: var(--admin-border) !important;
}

/* Notifications panel dark theme */
.notifications-panel {
    background-color: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
}

.notifications-header {
    background-color: var(--admin-bg-secondary);
    border-bottom: 1px solid var(--admin-border);
}

.notifications-header h3 {
    color: var(--admin-text-primary);
}

.notifications-header .btn-text {
    color: var(--admin-accent);
}

.notifications-list {
    background-color: var(--admin-bg-secondary);
}

.notification-item {
    background-color: var(--admin-bg-secondary);
    border-bottom: 1px solid var(--admin-border);
}

.notification-item:hover {
    background-color: var(--admin-hover);
}

.notification-content h4 {
    color: var(--admin-text-primary);
}

.notification-content p {
    color: var(--admin-text-secondary);
}

.notification-time {
    color: var(--admin-text-muted);
}

.notifications-footer {
    background-color: var(--admin-bg-secondary);
    border-top: 1px solid var(--admin-border);
}

/* Admin sidebar dark theme */
.admin-sidebar {
    background-color: var(--admin-bg-secondary);
    border-right: 1px solid var(--admin-border);
}

.admin-sidebar .nav-link {
    color: var(--admin-text-secondary);
}

.admin-sidebar .nav-link:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
}

.admin-sidebar .nav-item.active .nav-link {
    background-color: var(--admin-accent);
    color: white;
}

.sidebar-footer {
    border-top: 1px solid var(--admin-border);
}

.sidebar-footer .btn {
    border-color: var(--admin-border);
    color: var(--admin-text-secondary);
}

.sidebar-footer .btn:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
}

/* Admin main content dark theme */
.admin-main {
    background-color: var(--admin-bg-primary);
}

.admin-content {
    color: var(--admin-text-primary);
}

.page-header h1 {
    color: var(--admin-text-primary);
}

.page-header p {
    color: var(--admin-text-secondary);
}

/* Stats cards dark theme */
.stat-card {
    background-color: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
}

.stat-content h3 {
    color: var(--admin-text-primary);
}

.stat-content p {
    color: var(--admin-text-secondary);
}

/* Content cards dark theme */
.info-card, .content-card {
    background-color: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
}

.info-card h3, .content-card h3 {
    color: var(--admin-text-primary);
}

.info-card p, .content-card p {
    color: var(--admin-text-secondary);
}

/* Override default link styling in admin cards */
.info-card a {
    color: inherit !important;
    text-decoration: none !important;
}

.info-card a:hover {
    color: inherit !important;
}

/* Quick links dark theme */
.quick-link {
    color: var(--admin-text-secondary);
    background-color: transparent;
    border: 1px solid var(--admin-border);
}

.quick-link:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
    border-color: var(--admin-accent);
}

/* Buttons dark theme */
.btn-primary {
    background-color: var(--admin-accent);
    border-color: var(--admin-accent);
}

.btn-primary:hover {
    background-color: var(--admin-accent-hover);
}

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

.btn-secondary:hover {
    background-color: var(--admin-hover);
}

/* Tables dark theme */
.data-table {
    background-color: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
}

.data-table th {
    background-color: var(--admin-bg-tertiary);
    color: var(--admin-text-primary);
    border-bottom: 1px solid var(--admin-border);
}

.data-table td {
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.data-table tr:hover {
    background-color: var(--admin-hover);
}

/* File grid dark theme */
.file-grid {
    gap: 20px;
}

.file-item {
    background-color: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 20px;
}

.file-item:hover {
    background-color: var(--admin-hover);
}

.file-info h4 {
    color: var(--admin-text-primary);
}

.file-info p {
    color: var(--admin-text-secondary);
}

.file-date {
    color: var(--admin-text-muted);
}

.upload-area {
    background-color: var(--admin-bg-secondary);
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.upload-area h4 {
    color: var(--admin-text-primary);
}

.upload-area p {
    color: var(--admin-text-secondary);
}

/* Status badges dark theme */
.status-badge {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background-color: var(--admin-success);
    color: white;
}

.status-inactive {
    background-color: var(--admin-text-muted);
    color: white;
}

/* Action buttons dark theme */
.btn-icon {
    color: var(--admin-text-secondary);
    background-color: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    padding: 8px;
}

.btn-icon:hover {
    background-color: var(--admin-hover);
    color: var(--admin-text-primary);
}

.btn-danger:hover {
    background-color: var(--admin-error);
    color: white;
}

/* Empty state dark theme */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--admin-text-muted);
    font-size: 16px;
}

/* ===== COMPREHENSIVE DARK THEME ===== */
:root {
    /* Admin Dark Theme Variables */
    --admin-bg-primary: #1a1b23;
    --admin-bg-secondary: #222531;
    --admin-bg-tertiary: #2a2d3e;
    --admin-text-primary: #ffffff;
    --admin-text-secondary: #b8bcc8;
    --admin-text-muted: #6b7280;
    --admin-border: #374151;
    --admin-hover: #374151;
    --admin-error: #ef4444;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-info: #3b82f6;
    --admin-accent: #8b5cf6;
    --admin-input-bg: #374151;
    --admin-input-border: #4b5563;
    --admin-table-row-hover: #374151;
    --admin-card-bg: #1f2937;
    --admin-sidebar-bg: #111827;
}

/* Admin Body Dark Theme */
body.admin-body {
    background-color: var(--admin-bg-primary) !important;
    color: var(--admin-text-primary) !important;
}

/* Admin Layout Dark Theme */
.admin-layout {
    background-color: var(--admin-bg-primary);
}

/* Admin Header Dark Theme */
.admin-body .admin-header {
    background-color: var(--admin-bg-secondary) !important;
    border-bottom: 1px solid var(--admin-border) !important;
}

.admin-body .admin-header-content {
    color: var(--admin-text-primary) !important;
}

.admin-body .admin-logo .logo-text {
    color: var(--admin-accent) !important;
}

.admin-body .admin-logo .logo-image {
    filter: brightness(0) saturate(100%) invert(90%) sepia(10%) saturate(200%) hue-rotate(180deg) !important;
}

.admin-body .admin-header-actions {
    color: var(--admin-text-primary) !important;
}

.admin-body .user-button {
    color: var(--admin-text-primary) !important;
    background-color: var(--admin-bg-tertiary) !important;
    border: 1px solid var(--admin-border) !important;
}

.admin-body .user-button:hover {
    background-color: var(--admin-hover) !important;
}

.admin-body .user-avatar {
    background-color: var(--admin-accent) !important;
    color: white !important;
}

.admin-body .btn-icon {
    color: var(--admin-text-primary) !important;
    background-color: transparent !important;
}

.admin-body .btn-icon:hover {
    background-color: var(--admin-hover) !important;
}

/* Admin Sidebar Dark Theme */
.admin-sidebar {
    background-color: var(--admin-sidebar-bg) !important;
    border-right: 1px solid var(--admin-border) !important;
}

.admin-nav a {
    color: var(--admin-text-primary) !important;
    background-color: transparent !important;
    border-bottom: 1px solid var(--admin-border) !important;
}

.admin-nav a:hover {
    background-color: var(--admin-hover) !important;
    color: var(--admin-text-primary) !important;
}

.admin-nav a.active {
    background-color: var(--admin-accent) !important;
    color: white !important;
}

/* Admin Main Content Dark Theme */
.admin-main {
    background-color: var(--admin-bg-primary);
}

.admin-content {
    background-color: var(--admin-bg-primary);
    color: var(--admin-text-primary);
}

.admin-header-section {
    background-color: transparent;
}

.admin-header-section h1 {
    color: var(--admin-text-primary) !important;
}

/* Cards and Panels Dark Theme */
.card, .panel {
    background-color: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

.card-header, .panel-header {
    background-color: var(--admin-bg-tertiary) !important;
    border-bottom: 1px solid var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

/* Stats Cards Dark Theme */
.stat-card {
    background-color: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

.stat-value {
    color: var(--admin-text-primary) !important;
}

.stat-label {
    color: var(--admin-text-secondary) !important;
}

/* Admin Tables Dark Theme */
.admin-table {
    background-color: var(--admin-card-bg) !important;
    color: var(--admin-text-primary) !important;
}

.admin-table th {
    background-color: var(--admin-bg-tertiary) !important;
    color: var(--admin-text-primary) !important;
    border-bottom: 1px solid var(--admin-border) !important;
}

.admin-table td {
    background-color: var(--admin-card-bg) !important;
    color: var(--admin-text-primary) !important;
    border-bottom: 1px solid var(--admin-border) !important;
}

.admin-table tr:hover {
    background-color: var(--admin-table-row-hover) !important;
}

.admin-table tr:hover td {
    background-color: var(--admin-table-row-hover) !important;
}

/* Forms and Inputs Dark Theme - Admin Pages Only */
.admin-body .form-control, 
.admin-body input, 
.admin-body textarea, 
.admin-body select {
    background-color: var(--admin-input-bg) !important;
    border: 1px solid var(--admin-input-border) !important;
    color: var(--admin-text-primary) !important;
}

.admin-body .form-control:focus, 
.admin-body input:focus, 
.admin-body textarea:focus, 
.admin-body select:focus {
    background-color: var(--admin-input-bg) !important;
    border-color: var(--admin-accent) !important;
    color: var(--admin-text-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.admin-body .form-label, 
.admin-body label {
    color: var(--admin-text-primary) !important;
}

/* Contact Form Specific Styles - Override Admin Theme */
.contact-form input,
.contact-form textarea,
.contact-form select,
input[type="text"]:not(.admin-body input),
input[type="email"]:not(.admin-body input),
input[type="tel"]:not(.admin-body input),
textarea:not(.admin-body textarea) {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
input[type="text"]:not(.admin-body input)::placeholder,
input[type="email"]:not(.admin-body input)::placeholder,
input[type="tel"]:not(.admin-body input)::placeholder,
textarea:not(.admin-body textarea)::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
input[type="text"]:not(.admin-body input):focus,
input[type="email"]:not(.admin-body input):focus,
input[type="tel"]:not(.admin-body input):focus,
textarea:not(.admin-body textarea):focus {
    background-color: white !important;
    border-color: #dc2626 !important;
    color: #374151 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Buttons Dark Theme */
.btn-primary {
    background-color: var(--admin-accent) !important;
    border-color: var(--admin-accent) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
}

.btn-secondary {
    background-color: var(--admin-bg-tertiary) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

.btn-secondary:hover {
    background-color: var(--admin-hover) !important;
}

.btn-danger {
    background-color: var(--admin-error) !important;
    border-color: var(--admin-error) !important;
}

.btn-success {
    background-color: var(--admin-success) !important;
    border-color: var(--admin-success) !important;
}

.btn-warning {
    background-color: var(--admin-warning) !important;
    border-color: var(--admin-warning) !important;
}

/* Navigation and Breadcrumbs Dark Theme */
.breadcrumb {
    background-color: var(--admin-bg-tertiary) !important;
}

.breadcrumb-item a {
    color: var(--admin-accent) !important;
}

.breadcrumb-item.active {
    color: var(--admin-text-secondary) !important;
}

/* Pagination Dark Theme */
.pagination .page-link {
    background-color: var(--admin-card-bg) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

.pagination .page-link:hover {
    background-color: var(--admin-hover) !important;
    color: var(--admin-text-primary) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--admin-accent) !important;
    border-color: var(--admin-accent) !important;
}

/* Alerts Dark Theme */
.alert {
    border: 1px solid var(--admin-border) !important;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: var(--admin-success) !important;
    color: var(--admin-success) !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--admin-error) !important;
    color: var(--admin-error) !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: var(--admin-warning) !important;
    color: var(--admin-warning) !important;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: var(--admin-info) !important;
    color: var(--admin-info) !important;
}

/* Modals Dark Theme */
.modal-content {
    background-color: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
}

.modal-header {
    background-color: var(--admin-bg-tertiary) !important;
    border-bottom: 1px solid var(--admin-border) !important;
    color: var(--admin-text-primary) !important;
}

.modal-title {
    color: var(--admin-text-primary) !important;
}

.modal-body {
    background-color: var(--admin-card-bg) !important;
    color: var(--admin-text-primary) !important;
}

.modal-footer {
    background-color: var(--admin-bg-tertiary) !important;
    border-top: 1px solid var(--admin-border) !important;
}

/* Dropdowns Dark Theme */
.dropdown-menu {
    background-color: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
}

.dropdown-item {
    color: var(--admin-text-primary) !important;
}

.dropdown-item:hover {
    background-color: var(--admin-hover) !important;
    color: var(--admin-text-primary) !important;
}

/* Badge Dark Theme */
.badge {
    color: white !important;
}

.badge-primary {
    background-color: var(--admin-accent) !important;
}

.badge-success {
    background-color: var(--admin-success) !important;
}

.badge-danger {
    background-color: var(--admin-error) !important;
}

.badge-warning {
    background-color: var(--admin-warning) !important;
}

.badge-info {
    background-color: var(--admin-info) !important;
}

/* Text Colors Dark Theme */
.text-muted {
    color: var(--admin-text-muted) !important;
}

.text-primary {
    color: var(--admin-accent) !important;
}

.text-success {
    color: var(--admin-success) !important;
}

.text-danger {
    color: var(--admin-error) !important;
}

.admin-body .text-warning {
    color: var(--admin-warning) !important;
}

.admin-body .text-info {
    color: var(--admin-info) !important;
}

/* Background Colors Dark Theme - Admin Only */
.admin-body .bg-light {
    background-color: var(--admin-bg-tertiary) !important;
}

.admin-body .bg-white {
    background-color: var(--admin-card-bg) !important;
}

/* Border Colors Dark Theme - Admin Only */
.admin-body .border {
    border-color: var(--admin-border) !important;
}

.admin-body .border-top {
    border-top-color: var(--admin-border) !important;
}

.admin-body .border-bottom {
    border-bottom-color: var(--admin-border) !important;
}

.admin-body .border-left {
    border-left-color: var(--admin-border) !important;
}

.admin-body .border-right {
    border-right-color: var(--admin-border) !important;
}

/* Search and Filter Bar Dark Theme - Admin Only */
.admin-body .search-bar, .admin-body .filter-bar {
    background-color: var(--admin-card-bg) !important;
    border: 1px solid var(--admin-border) !important;
}

.admin-body .search-input, .admin-body .filter-select {
    background-color: var(--admin-input-bg) !important;
    border: 1px solid var(--admin-input-border) !important;
    color: var(--admin-text-primary) !important;
}

/* Table Actions Dark Theme - Admin Only */
.admin-body .table-actions .btn {
    border: 1px solid var(--admin-border) !important;
}

.admin-body .table-actions .btn:hover {
    background-color: var(--admin-hover) !important;
}

/* File Upload Dark Theme - Admin Only */
.admin-body .file-upload-area {
    background-color: var(--admin-bg-tertiary) !important;
    border: 2px dashed var(--admin-border) !important;
    color: var(--admin-text-secondary) !important;
}

.admin-body .file-upload-area:hover {
    border-color: var(--admin-accent) !important;
    background-color: var(--admin-hover) !important;
}

/* Progress Bars Dark Theme */
.progress {
    background-color: var(--admin-bg-tertiary) !important;
}

.progress-bar {
    background-color: var(--admin-accent) !important;
}

/* Tabs Dark Theme */
.nav-tabs {
    border-bottom: 1px solid var(--admin-border) !important;
}

.nav-tabs .nav-link {
    background-color: var(--admin-bg-tertiary) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text-secondary) !important;
}

.nav-tabs .nav-link:hover {
    background-color: var(--admin-hover) !important;
    color: var(--admin-text-primary) !important;
}

.nav-tabs .nav-link.active {
    background-color: var(--admin-card-bg) !important;
    border-bottom-color: var(--admin-card-bg) !important;
    color: var(--admin-text-primary) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--admin-bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--admin-hover);
}

/* Admin Table Column Control */
.admin-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.admin-table th:nth-child(1) { width: 60px; } /* Imagen */
.admin-table th:nth-child(2) { width: 120px; } /* Código */
.admin-table th:nth-child(3) { width: 250px; } /* Nombre */
.admin-table th:nth-child(4) { width: 120px; } /* Marca */
.admin-table th:nth-child(5) { width: 120px; } /* Familia */
.admin-table th:nth-child(6) { width: 90px; } /* Estado */
.admin-table th:nth-child(7) { width: 100px; } /* Archivos */
.admin-table th:nth-child(8) { width: 110px; } /* Fecha */
.admin-table th:nth-child(9) { width: 120px; } /* Acciones */

.product-name-cell {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 250px !important;
    white-space: normal !important;
}

.admin-table td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: top !important;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.prev {
    transform: translateX(-100%) scale(0.95);
}

.slide.next {
    transform: translateX(100%) scale(0.95);
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.slide.active .slide-overlay {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.slide-content {
    max-width: 300px;
}

.slide-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.slide-description {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.indicator.active {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.125rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }
    
    .slide-overlay {
        padding: 1.5rem;
    }
    
    .slide-title {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.75rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Animation for smooth transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide.active .slide-title {
    animation: slideIn 0.6s ease forwards;
    animation-delay: 0.4s;
}

.slide.active .slide-description {
    animation: slideIn 0.6s ease forwards;
    animation-delay: 0.6s;
}