* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
}

.encabezado-lujo {
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid #B76E79; 
}

.encabezado-lujo h1 {
    font-family: 'Cinzel', serif; 
    font-size: 3em; 
    font-weight: 400;
    letter-spacing: 4px;
    color: #D4AF37; 
    text-transform: uppercase;
    margin-bottom: 5px;
}

.encabezado-lujo p {
    font-family: 'Montserrat', sans-serif;
    color: #B76E79; 
    font-size: 1em;
    letter-spacing: 2px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .encabezado-lujo h1 { font-size: 4em; letter-spacing: 6px; }
    .encabezado-lujo p { font-size: 1.1em; letter-spacing: 3px; }
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; 
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;
        padding: 60px 20px;
    }
}

.contenedor-joya { position: relative; }

.foto-joya {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .foto-joya { height: 280px; }
}

.foto-joya:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 15px 30px rgba(183, 110, 121, 0.25);
    border-color: #B76E79;
}

.foto-joya.seleccionada {
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(0.95);
    opacity: 0.9;
    outline: 2px solid #D4AF37;
}

.foto-joya.agotada {
    filter: grayscale(100%) brightness(90%);
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #dddddd;
}

.foto-joya.agotada:hover {
    transform: none;
    box-shadow: none;
    border-color: #dddddd;
}

.letrero-vendida {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(212, 175, 55, 0.95);
    color: #ffffff;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1em;
    border-radius: 2px;
    pointer-events: none;
    white-space: nowrap; 
}

@media (min-width: 768px) {
    .letrero-vendida { font-size: 1.2em; letter-spacing: 3px; padding: 10px 20px; }
}

.pie-pagina {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}

.pie-pagina p { color: #aaaaaa; font-size: 0.9em; letter-spacing: 1px; }

#carrito-flotante {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    background-color: #ffffff;
    border: 2px solid #D4AF37;
    padding: 10px 20px; 
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    z-index: 1000;
    max-width: 90%; 
}

@media (min-width: 768px) {
    #carrito-flotante { bottom: 30px; right: 30px; padding: 15px 25px; gap: 20px; }
}

#carrito-flotante p { color: #333333; font-size: 0.9em; margin: 0; }

@media (min-width: 768px) {
    #carrito-flotante p { font-size: 1em; }
}

#carrito-flotante.oculto {
    transform: translateY(150px); opacity: 0; pointer-events: none;
}

#btn-whatsapp {
    background-color: #B76E79; 
    color: #ffffff;
    border: none;
    padding: 10px 20px; 
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    #btn-whatsapp { padding: 12px 24px; font-size: 1em; }
}

#btn-whatsapp:hover { background-color: #D4AF37; }

/* --- DISEÑO DEL BOTÓN DE CANCELAR (X) --- */
#cerrar-carrito {
    cursor: pointer;
    color: #B76E79; 
    font-size: 1.2em;
    font-weight: bold;
    padding-right: 10px;
    transition: color 0.3s ease;
}

#cerrar-carrito:hover {
    color: #D4AF37; 
}