/* --- 1. CONFIGURACIÓN GENERAL --- */
body {
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    min-height: 100vh;
    font-family: 'Playfair Display', Georgia, serif; 
    background-color: #1a0029; 
    background-image: 
        radial-gradient(circle at center, #350052 0%, #11001c 100%),
        url("https://www.transparenttextures.com/patterns/asfalt-dark.png"); 
    background-blend-mode: multiply;
    background-attachment: fixed;
}

/* --- 2. SECCIÓN HERO (EXPLORAR) --- */
.hero-section {
    padding-top: 60px;
    text-align: center;
}

.hero-section h1 {
    color: #d4af37;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.hero-section p {
    color: #d4af37;
    font-style: italic;
    opacity: 0.9;
}

/* --- 3. BARRA DE BÚSQUEDA --- */
.search-bar {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 2rem auto;
}

.search-bar input {
    flex-grow: 1;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #d4af37;
    border-radius: 50px 0 0 50px;
    color: #f5f5f5;
    outline: none;
}

.btn-search {
    background: #d4af37;
    color: #1a0029;
    border: 1px solid #d4af37;
    padding: 10px 25px;
    border-radius: 0 50px 50px 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-search:hover {
    background: transparent;
    color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* --- 4. GRID DE PRODUCTOS --- */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 2rem 5% 4rem;
}

.producto-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.producto-card h3 {
    color: #d4af37;
    margin: 10px 0;
    font-size: 1.2rem;
}

.precio {
    display: block;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-card {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-card:hover {
    background: #d4af37;
    color: #1a0029;
}

.no-results {
    color: #d4af37;
    grid-column: 1/-1;
    text-align: center;
    font-style: italic;
    padding: 40px;
}

.producto-card img {
    width: 100%;
    height: 250px; /* Altura fija para todas */
    object-fit: cover; /* Recorta la imagen para que rellene el cuadro sin estirarse */
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
}