/* =============================================
   ARTECALLI - Estilos principales
   ============================================= */

:root {
    --color-primary: #000000;
    --color-primary-dark: #152a45;
    --color-secondary: #f8f9fa;
    --color-accent: #8B7355;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #e5e7eb;
    --color-bg-light: #f9fafb;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #fff;
}

/* Typography */
.brand-text,
h1, h2, h3, h4, h5,
.section-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.letter-spacing {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: #0000005c !important;
    box-shadow: 0 1px 3px rgba(243, 240, 240, 0.1);
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.781);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.781) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link:hover {
    color: rgba(243, 240, 240, 0.1) !important;
}

.admin-btn {
    color: #fff !important;
    border-radius: 8px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
}

.admin-icon {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff !important;
    transition: all 0.3s ease;
}

.admin-icon:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/hero-bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Estilos para el Logo del Hero --- */
.hero-logo {
    max-width: 170px; /* Tamaño ajustable */
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 100px;
        margin-bottom: 1rem;
    }
}

/* --- Efecto de fondo ovalado pequeño con blur --- */
.logo-container-blur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px);          
    -webkit-backdrop-filter: blur(10px);   
    border-radius: 50%;                    
    padding: 18px;            /* Reducido de 35px a 18px para hacerlo más pequeño */
    margin-bottom: 20px;      
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Tamaño del logo dentro del óvalo pequeño */
.hero-logo-white {
    max-width: 85px;          /* También bajamos un poco el logo para que el óvalo no crezca */
    height: auto;
    display: block;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .logo-container-blur {
        padding: 12px;        /* Aún más pequeño en móviles */
    }
    .hero-logo-white {
        max-width: 65px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-title {
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Catalogo Section */
.catalogo-section {
    background-color: var(--color-bg-light);
}

.search-filter-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

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

.search-input {
    padding-left: 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 48px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.filter-toggle-btn {
    height: 48px;
    border-radius: 8px;
    font-weight: 500;
    border-color: var(--color-border);
}

.filter-toggle-btn:hover {
    border-color: var(--color-primary);
    color: #fff;
}

.filtros-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.filtros-panel .form-select {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    height: 44px;
    font-size: 0.9rem;
}

.filtros-panel .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-range::-webkit-slider-thumb {
    background: var(--color-primary);
}

.form-range::-moz-range-thumb {
    background: var(--color-primary);
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
}

.product-card .card-body {
    padding: 1.25rem;
}

.categoria-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: black;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.973);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card .card-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-ver-detalles {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-ver-detalles:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Nosotros Section */
.nosotros-section {
    background-color: #fff;
}

.carousel-custom {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-custom img {
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 1;
    margin: 0 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(0);
    width: 16px;
    height: 16px;
}

.carousel-indicators {
    bottom: 1rem;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: #fff;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-card h6 {
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark) !important;
}

footer a:hover {
    color: white !important;
}

/* Modal de Producto */
.producto-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.btn-close-modal {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.modal-producto-titulo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 1.5rem;
    padding-right: 3rem;
    margin: 0;
}

.modal-producto-imagen {
    width: 100%;
    height: 280px;
    background: var(--color-bg-light);
    overflow: hidden;
}

.modal-producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-producto-descripcion {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.modal-producto-tags {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text);
}

.tag-label {
    color: var(--color-text-muted);
}

.modal-producto-footer {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-precio {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-disponible {
    background: #d1fae5;
    color: #065f46;
}

.stock-agotado {
    background: #fee2e2;
    color: #991b1b;
}

/* Color dot */
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.color-dot-lg {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        background-color: #fff !important;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .card-img-wrapper {
        height: 220px;
    }
    
    .carousel-custom img {
        height: 280px;
    }
    
    .modal-producto-imagen {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .filtros-panel .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

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

.producto-card {
    animation: fadeIn 0.5s ease forwards;
}

.producto-card:nth-child(1) { animation-delay: 0s; }
.producto-card:nth-child(2) { animation-delay: 0.05s; }
.producto-card:nth-child(3) { animation-delay: 0.1s; }
.producto-card:nth-child(4) { animation-delay: 0.15s; }
.producto-card:nth-child(5) { animation-delay: 0.2s; }
.producto-card:nth-child(6) { animation-delay: 0.25s; }
.producto-card:nth-child(7) { animation-delay: 0.3s; }
.producto-card:nth-child(8) { animation-delay: 0.35s; }

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

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
