/* Estilos Catálogo Etnográfico */
.nav-dark { background: #1a1a1a !important; position: relative !important; }
.topo-header {
    background: #e9e5de;
    padding: 80px 5%;
    text-align: center;
    border-bottom: 1px solid #dcd9d4;
}

.topo-header h1 { font-family: 'Playfair Display', serif; color: var(--primary); }
.etno-header {
    background: #1a1a1a;
    color: white;
    padding: 100px 5%;
    text-align: center;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.7rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.etno-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: -50px; /* Eleva las tarjetas sobre el header oscuro */
}

.pieza-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: 0.4s;
}

.pieza-img-box {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.pieza-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.pieza-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 62, 45, 0.8); /* Verde bosque con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.pieza-card:hover .pieza-overlay { opacity: 1; }
.pieza-card:hover img { transform: scale(1.1); }

.btn-view {
    padding: 12px 25px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pieza-meta { padding: 25px; }

.ref {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.pieza-meta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pieza-meta p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .etno-header h1 { font-size: 2.5rem; }
    .pieza-img-box { height: 300px; }
}

.bg-light { background-color: #f8f7f5; }

.ficha-tecnica-container {
    padding-top: 50px;
    padding-bottom: 80px;
}

.ficha-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.ficha-visual .label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.main-img-container, .technical-img-container {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.ficha-visual img {
    width: 100%;
    border-radius: 4px;
}

.ref-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}

.ficha-header h1 {
    font-family: 'Playfair Display', serif;
    margin: 15px 0 30px;
    color: var(--primary);
}

.info-block {
    margin-bottom: 40px;
}

.info-block h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.specs-list { list-style: none; }
.specs-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.long-desc {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.btn-print {
    margin-top: 20px;
    background: none;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-print:hover { background: #eee; }

/* Responsive para la ficha */
@media (max-width: 992px) {
    .ficha-wrapper { grid-template-columns: 1fr; }
}

.filter-bar {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    position: sticky;
    top: 0px; /* Ajusta según la altura de tu nav */
    z-index: 10;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #2c3e50; /* Color oscuro como tu nav */
    color: #fff;
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}