/* Custom CSS for Modo Exclusivo */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

/* Header Styles */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ccc !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%);
    color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Logo Styles */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-clickable {
    transition: all 0.3s ease;
    width: 100%;
}

.image-clickable:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.image-expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 1;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;
}

.product-image-container:hover .image-expand-icon {
    transform: scale(1.1);
    background: rgba(0,0,0,0.9);
}

.product-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-reference {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 1rem;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1fb854;
    border-color: #1fb854;
    color: white;
    transform: translateY(-1px);
}

/* Social Media Buttons */
.social-links {
    margin-top: 2rem;
}

.social-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #166fe5;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

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

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

/* Admin Styles */
.admin-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 0;
}

.admin-login-form {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.product-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .social-btn {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
        max-width: 200px;
    }
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 0;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
}

/* Image Modal Styles */
#imageModal .modal-content {
    background: rgba(0,0,0,0.9);
}

#imageModal .modal-dialog {
    max-width: 90vw;
}

#imageModal .modal-body img {
    transition: transform 0.3s ease;
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

#imageModal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#imageModal .modal-title {
    font-weight: 600;
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}
