/* 
 * Estilos personalizados - Hnos. Guerra
 * Estética solemne y elegante manteniendo el espíritu original
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #8b6914;
    --gold-color: #d4af37;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

/* General */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
}

.top-bar a:hover {
    color: var(--gold-color) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* Logo */
.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-primary {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-secondary {
    color: var(--secondary-color);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 2px;
    line-height: 1.2;
    max-width: 280px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.05)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Secciones */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--gold-color));
}

/* Tarjetas de Producto */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--gold-color);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.product-card .product-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.badge-novedad {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold-color) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--secondary-color) 100%);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    margin-top: 3rem;
}

.footer h5 {
    color: var(--gold-color);
    font-family: 'Playfair Display', serif;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--gold-color) !important;
    padding-left: 5px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

/* Carrito */
.cart-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gold-color);
}

.cart-summary .total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Logo responsive */
    .logo-img {
        height: 45px;
    }
    
    .brand-primary {
        font-size: 1rem;
    }
    
    .brand-secondary {
        font-size: 0.6rem;
        max-width: 200px;
    }
    
    .navbar-brand {
        padding: 0.25rem 0;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Tabla de productos */
.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Filtros de búsqueda */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
