.best-sellers-hero {
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.best-sellers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,70 Q50,30 100,70 L100,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.best-sellers-hero > * {
    position: relative;
    z-index: 1;
}

.best-sellers-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--tercero);
}

.best-sellers-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.stone-categories {
    padding: 60px 20px;
    background: var(--tercero);
}

.category-section {
    margin-bottom: 80px;
}

.category-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.category-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.category-title p{
    font-size: 1.5rem;
    font-weight: bold;
}

.titulo_coleccion{
    text-align: center;
    margin-bottom: 50px;
    color: var(--secundary);
    font-size: 3rem;
}
.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secundary);
}

.category-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3rem;
    color: var(--primari-gradiente);
    font-weight: 600;
}

/* Galería avanzada */
.gallery-advanced {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(4, 42, 57, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--tercero);
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stone-type {
    display: inline-block;
    background: var(--secundary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tamaños de galería */
.size-1 { flex: 1; }
.size-2 { flex: 2; }
.size-3 { flex: 3; }
.size-4 { flex: 4; }

/* Distribuciones específicas */
.row-3-items .gallery-item { flex: 1; }
.row-2-items .gallery-item { flex: 1; }
.row-2-asymmetric .gallery-item.size-2 { flex: 2; }
.row-2-asymmetric .gallery-item.size-3 { flex: 3; }
.row-single .gallery-item { width: 100%; max-width: 800px; margin: 0 auto; }

.contenedor_suplayer{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.proveedores{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.suplayer{
    border-bottom: 3px solid var(--secundary);
    width: 25%;
    text-align: center;
    padding-bottom: 5px;
    border-radius: 15px;
}

.contenedor_suplayer img{
    width: 200px;
    height: 100px;
    object-fit: none;
}

/* ===== ESTILOS PARA EL MODAL DE PIEDRAS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.stone-modal {
    background-color: var(--tercero);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .stone-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--tercero);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--secundary);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-content {
    padding: 30px;
}

.modal-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secundary);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-project-info {
    background: var(--secundary-lightest);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid var(--secundary);
}

.modal-project-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.modal-project-info p {
    color: var(--primary);
    font-style: italic;
}

/* Hacer las tarjetas clickeables */
.stone-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stone-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .stone-modal {
        width: 95%;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    .modal-image {
        height: 200px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-row, .contenedor_suplayer {
        flex-wrap: wrap;
    }

    .suplayer{
        width: 80%;
    }

    .gallery-item {
        flex: 1 1 calc(50% - 20px) !important;
        min-width: 300px;
    }
    
    .row-single .gallery-item {
        flex: 1 1 100% !important;
    }
}

@media (max-width: 768px) {
    .best-sellers-hero h1 {
        font-size: 2.2rem;
    }
    
    .category-title h2 {
        font-size: 2rem;
    }
    
    .gallery-item {
        flex: 1 1 100% !important;
    }
    
    .gallery-info {
        opacity: 1;
        transform: translateY(0);
        background: rgba(4, 42, 57, 0.8);
    }
}

.supplier-note {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secundary-lightest) 0%, var(--tercero) 100%);
    margin-top: 40px;
    border-radius: 15px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.supplier-note h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.supplier-note p {
    color: var(--primari-gradiente);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}