@import url('https://fonts.googleapis.com/css?family=Inter:wght@300;400&family=Poppins:wght@400;500;600&display=swap');

:root {
    --gold: #C6A454; /* Color extra赤do exactamente de tu logo */
    --black: #111111;
    --ivory: #FAF9F6;
    --gray: #666666;
    --light-gray: #EAEAEA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--ivory); color: var(--black); font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; }

/* Preloader Pantalla de Carga */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--black); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.preloader-container { position: relative; width: 120px; height: 120px; display: flex; justify-content: center; align-items: center; }
.preloader-container img { position: absolute; width: 60px; animation: pulse 1.5s infinite alternate; }
.spinner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 3px solid rgba(255,255,255,0.1); border-left-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.1); opacity: 1; } }

/* Animaciones de Scroll */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* TradingView Widget */
.tradingview-widget-container { background-color: var(--black); border-bottom: 2px solid var(--gold); height: 38px; overflow: hidden; display: flex; align-items: center; }

/* Encabezado Minimalista (Solo Logo) */
header { 
    background-color: var(--ivory); 
    border-bottom: 1px solid var(--light-gray); 
    padding: 5px 20px; /* Reducido drásticamente de 25px a 5px */
    text-align: center; 
}
.logo-container img { 
    width: 180px; /* Un poco más ancho para compensar */
    max-height: 70px; /* Forzamos un alto máximo para "cortar" el aire invisible de tu imagen */
    object-fit: contain; /* Evita que el diamante se deforme o estire */
    display: block; 
    margin: 0 auto; 
    transition: transform 0.3s; 
}
.logo-container img:hover { 
    transform: scale(1.05); 
}

/* Hero Principal Difuminado */
.hero { position: relative; height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('https://images.unsplash.com/photo-1617038220319-276d3cfab638?auto=format&fit=crop&w=2070&q=80'); background-size: cover; background-position: center; filter: blur(8px); transform: scale(1.1); z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; color: #FFF; text-align: center; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; color: var(--gold); letter-spacing: 2px; }
.hero-content p { font-size: 1.2rem; font-weight: 300; }

/* Secci車n Productos */
.products-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 50px; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { background: transparent; text-align: center; cursor: pointer; position: relative; transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-5px); }

.status-badge { position: absolute; top: 10px; right: 10px; background: var(--black); color: var(--gold); font-size: 0.7rem; padding: 4px 10px; text-transform: uppercase; font-family: 'Poppins', sans-serif; z-index: 2; }
.status-Vendido { background: #999; color: #FFF; }

.image-wrapper { overflow: hidden; position: relative; margin-bottom: 15px; width: 100%; height: 280px; background-color: #FFF; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .image-wrapper img { transform: scale(1.05); }
.product-card h3 { font-size: 0.95rem; color: var(--black); margin-bottom: 5px; }
.product-card p { font-size: 0.8rem; color: var(--gray); margin-bottom: 8px; }
.product-card .price { font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--gold); font-weight: 600; }

/* Botones Principales */
.btn-whatsapp-buy, .btn-primary { display: inline-block; background-color: var(--black); color: var(--ivory); padding: 15px 35px; text-transform: uppercase; font-size: 0.9rem; font-family: 'Poppins'; transition: 0.3s; border: none; cursor: pointer; }
.btn-whatsapp-buy:hover, .btn-primary:hover { background-color: var(--gold); color: var(--black); }

/* Cat芍logo - Layout, Buscador y Acorde車n */
.catalog-layout { display: flex; max-width: 1300px; margin: 50px auto; padding: 0 20px; gap: 40px; align-items: flex-start; }
.catalog-sidebar { width: 250px; flex-shrink: 0; }
.catalog-main { flex: 1; }
.search-bar { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Poppins'; margin-bottom: 30px; outline: none; }
.search-bar:focus { border-color: var(--gold); }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-size: 1rem; margin-bottom: 15px; border-bottom: 1px solid var(--light-gray); padding-bottom: 5px; }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 10px; font-size: 0.95rem; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.filter-list a:hover { color: var(--gold); }
.submenu { list-style: none; padding-left: 15px; margin-top: 10px; border-left: 1px solid var(--light-gray); overflow: hidden; transition: max-height 0.3s ease-out; max-height: 0; }
.submenu.open { max-height: 200px; }
.submenu li { margin-bottom: 8px; font-size: 0.85rem; color: var(--gray); }
.arrow { font-size: 0.7rem; transition: transform 0.3s; }
.arrow.open { transform: rotate(180deg); }

/* Paginaci車n */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.pagination a, .pagination span { padding: 10px 18px; border: 1px solid var(--gold); font-family: 'Poppins', sans-serif; font-size: 0.9rem; transition: 0.3s; }
.pagination a:hover { background-color: var(--gold); color: var(--black); }
.pagination .current { background-color: var(--black); color: var(--gold); pointer-events: none; }

/* Servicios y Contacto */
.services-banner { background-color: var(--black); color: var(--ivory); text-align: center; padding: 70px 20px; margin: 80px 0; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.services-banner h2 { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.services-banner p { max-width: 800px; margin: 0 auto; font-size: 1rem; color: #CCCCCC; }
.contact-section { display: flex; max-width: 1000px; margin: 80px auto; padding: 0 20px; gap: 60px; align-items: center; }
.map-container, .info-container { flex: 1; }
.info-container h3 { color: var(--black); font-size: 1.8rem; margin-bottom: 30px; }
.info-item { margin-bottom: 25px; }
.info-item h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 5px; }

/* Producto Individual */
.product-detail-section { max-width: 1000px; margin: 60px auto; padding: 0 20px; display: flex; gap: 60px; }
.gallery-container { display: flex; flex: 1; gap: 15px; }
.thumbnails { display: flex; flex-direction: column; gap: 10px; width: 80px; }
.thumbnails img { width: 80px; height: 100px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border 0.3s; }
.thumbnails img.active, .thumbnails img:hover { border: 2px solid var(--gold); }
.main-image-container { flex: 1; }
.main-image-container img { width: 100%; height: 500px; object-fit: cover; }
.product-info { flex: 1; }
.product-info h1 { font-size: 2.2rem; margin-bottom: 10px; }
.product-info .detail-price { font-size: 1.8rem; color: var(--gold); margin-bottom: 25px; }
.product-info p { margin-bottom: 40px; }

/* Footer y Redes */
footer { background: var(--black); color: var(--ivory); text-align: center; padding: 40px 20px 30px; font-size: 0.85rem; font-family: 'Poppins', sans-serif; }
.social-footer { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-footer a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); transition: all 0.3s ease; }
.social-footer a:hover { background-color: var(--gold); color: var(--black); transform: translateY(-3px); }
.whatsapp-float { position: fixed; width: 55px; height: 55px; bottom: 30px; right: 30px; background: #25D366; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; }
    .product-detail-section, .contact-section { flex-direction: column; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .gallery-container { flex-direction: column-reverse; }
    .thumbnails { flex-direction: row; width: 100%; justify-content: space-between; overflow-x: auto; }
    .thumbnails img { width: 23%; height: 80px; }
    .main-image-container img { height: 350px; }
}