/*======================= CATEGORÍAS =======================*/
.bg-fixed {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(20, 19, 19, 0.611), /*arriba*/ rgba(0, 0, 0, 0.186)), /*abajo*/
        url('../img/Lamparas-71.jpg');

    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.categorias {
    position: relative;
    padding: 7rem 2rem 3rem;
}

.productos-header {
    text-align: center;
    margin-bottom: 3rem;
    color: hsla(0, 7%, 97%, 0.721);
}

.productos-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}


/*======================= CARD DE CATEGORIAS =======================*/

.categoria-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.45s cubic-bezier(.22,1,.36,1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.categoria-card:hover {
    transform: translateY(-8px);
    border-color: #cf9a5c;
    box-shadow:
        0 0 0 1px rgba(255, 89, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(207, 83, 0, 0.35);
}


/*---------------- IMAGEN CARD EN CATEGRORIAS ----------------*/

.categoria-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.categoria-card:hover .categoria-img {
    transform: scale(1.07);
}


/*-------------------- INFORMACIÓN -------------*/

.categoria-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.categoria-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: hsla(0, 7%, 97%, 0.721);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.categoria-card:hover .categoria-info h3 {
    color: #cf9a5c;
}


/*----------------RAYITA ---------------------*/

.categoria-linea {
    width: 35px;
    height: 2px;
    background: #cf9a5c;
    margin-bottom: 1rem;
    transition: width 0.4s cubic-bezier(.22,1,.36,1);
}

.categoria-card:hover .categoria-linea {
    width: 65px;
}


/*----------------DESCRIPCIÓN CATEGORIA ------------------*/

.categoria-info p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.85;
    color: hsla(0, 7%, 97%, 0.721);
    margin-bottom: 1.2rem;
}


/*-------------- BOTÓN VER CATEGORIA --------------*/

.btn-categoria {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 8px 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 89, 0, 0.7);
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        gap 0.3s ease,
        transform 0.3s ease;
}

.btn-categoria i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.categoria-card:hover .btn-categoria {
    background: #cf9a5c;
    border-color: #cf9a5c;
    gap: 0.9rem;
}

.categoria-card:hover .btn-categoria i {
    transform: translateX(3px);
}


/*======================= RESPONSVIDAD TABLET =======================*/

@media (max-width: 768px) {

    .categorias {
        padding: 6rem 1.5rem 3rem;
    }

    .productos-header {
        margin-bottom: 2rem;
    }

    .productos-header h2 {
        font-size: 2.4rem;
    }

    .categoria-img {
        height: 220px;
    }

}


/*======================= MOBILE =======================*/

@media (max-width: 480px) {

    .categorias {
        padding: 5rem 1rem 2rem;
    }

    .productos-header h2 {
        font-size: 2rem;
    }

    .categoria-img {
        height: 200px;
    }

    .categoria-info {
        padding: 1.4rem;
    }

    .categoria-info h3 {
        font-size: 1.35rem;
    }

    .categoria-info p {
        font-size: 0.88rem;
    }

}


/*======================= GRID DE PRODUCTOS =======================*/

.productos {
    position: relative;
    padding: 7rem 2rem 3rem;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================== CARD DE LAMPARAS ==================*/
.producto-card {
    display: block;
    text-decoration: none;   /*esto saca el subrayado */
    background: rgba(255, 255, 255, 0.039);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.195);
    border-radius: 20px;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(.22,1,.36,1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.producto-card:hover {
    transform: translateY(-8px);
    border-color: #c0bbb4;
    box-shadow:
        0 0 0 1px rgba(255, 89, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(207, 83, 0, 0.35);
}

.producto-img-wrap {
    position: relative;
    overflow: hidden;
}

.producto-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.producto-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f1ed;
    background: rgba(20, 26, 21, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.producto-info {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.producto-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.producto-tipo {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #cf9a5c;
}

.producto-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5f1ed;
}

.producto-precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f1ed;
    white-space: nowrap;
}

.producto-colores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.producto-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.producto-colores-mas {
    margin-left: 0.25rem;
    font-size: 0.82rem;
    color: #d9d2ca;
}

.producto-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    color: #d9d2ca;
}
/* ------------------METODO DE PAGO -------------------*/

.producto-botones {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.btn-comprar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 20px;
    min-height: 46px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    
}

.btn-mp {
    background-color: #00b0f0;
    color: hsl(0, 7%, 97%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-mp:hover {
    background-color: #0076a0;
    transform: translateY(-2px);
}

.btn-mp .banco-logo-btn {
    height: 25px;
    width: auto;
}

.btn-transferencia {
    background: rgba(255, 255, 255, 0.08);
    color: hsla(0, 7%, 97%, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-transferencia:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
/*------------------- DETALLE DE PRODUCTO DENTRO DE CARD DE PRODUCTO ---------------------*/

.producto-detalle {
    padding: 6rem 2rem 4rem; /*altura card de cada lampara*/
}

.producto-detalle-grid {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #b78c701d;
    border: 1px solid rgba(162, 151, 151, 0.441);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px s(0, 0, 0, 0.25);
    backdrop-filter: blur(240px);
    -webkit-backdrop-filter: blur(240px);
}

.producto-detalle-img {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.producto-detalle-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.producto-detalle-grid:hover .producto-detalle-img img {
    transform: scale(1.035);
}

.producto-detalle-img::before {
    content: "01";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(8px);
}

.producto-detalle-info {
    padding: 2rem 2.4rem 2rem;
}

.producto-detalle-info::before { /*TEXTO COLECCIÓN*/
    content: "COLECCIÓN";
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: #cf995c83;
}

.producto-detalle-info h1 {
    position: relative;
    margin-bottom: 0.7rem;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.95);
}

.producto-linea {
    width: 30px;
    height: 1px;
    background: #cf9a5c;
    margin: 0.5rem 0 1.3rem;
    transition: width 0.4s ease;
}

.producto-detalle-grid:hover .producto-linea {
    width: 65px;
}

.producto-detalle-precio { /* PRECIO*/
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.producto-titulo-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.producto-detalle-descripcion { /* TEXTO DESCRIPCIÓN */
    max-width: 480px;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.728);
}

.producto-no-encontrado {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.producto-no-encontrado a {
    margin-left: 0.5rem;
    color: #cf9a5c;
    text-decoration: none;
}

.btn-compartir-flotante {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn-compartir-flotante:hover {
    background: #cf9a5c;
    transform: translateY(-2px);
}

.producto-detalle-descripcion {
    margin-bottom: 1.1rem;
}

.ver-mas-inline {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: #cf9a5c;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
    display: block;  
}

.ver-mas-inline:hover {
    color: #ff8b4a;
}

.especificaciones-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.especificaciones-lista li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.772);
}

.especificaciones-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cf9a5c;
}

@media (max-width: 768px) {
    .producto-detalle {
        padding: 6rem 1rem 3rem;
    }

    .producto-detalle-grid {
        grid-template-columns: 1fr; 
        max-width: 500px;
        border-radius: 20px;
    }

    .producto-detalle-img {
        aspect-ratio: 1 / 1;
    }

    .producto-detalle-info {
        padding: 1.8rem 1.5rem 2rem;
    }

    .producto-detalle-info h1 {
        font-size: 2rem;
    }
}

/*======================= MODAL TRANSFERENCIA =======================*/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.447);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(125, 121, 121, 0.442);
    backdrop-filter: blur(200px);
    -webkit-backdrop-filter: blur(200px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: hsla(0, 7%, 97%, 0.85);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsla(0, 7%, 97%, 0.9);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: hsla(0, 7%, 97%, 0.7);
    margin-bottom: 1.5rem;
}

.modal-content.tema-itau {
    background: rgba(255, 106, 0, 0.625);
}

.modal-content.tema-prex {
    background: rgba(124, 58, 237, 0.598);
}

.datos-bancarios {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dato-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dato-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsla(0, 7%, 97%, 0.55);
}

.dato-valor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 0.6rem 0.9rem;
}

.dato-valor {
    font-size: 0.95rem;
    color: hsla(0, 7%, 97%, 0.9);
}

.btn-copiar {
    background: transparent;
    border: none;
    color: hsla(0, 7%, 97%, 0.7);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.btn-copiar:hover {
    color: #cf9a5c;
}

.modal-nota {
    font-size: 0.8rem;
    color: hsla(0, 7%, 97%, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-btn-whatsapp:hover {
    background-color: #1ebe5b;
    transform: translateY(-2px);
}

.banco-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}

.banco-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: hsla(0, 7%, 97%, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.banco-tab.active {
    color: hsla(0, 7%, 97%, 0.7);
    color: hsla(0, 7%, 97%, 0.7);
}

.banco-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.banco-logo-btn {
    width: 23px;
    height: 23px;
    object-fit: contain;
    border-radius: 3px;
}

/*======== MODAL DESGLOS PARA TRANSFERIR ==========*/
.modal-desglose {
    width: 100%;
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.desglose-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #ded7d1ea;
}

.desglose-fila.desglose-total {
    margin-top: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

/* Oculta la fila de envío cuando la entrega es retiro */
.modal-desglose.solo-retiro #desglose-fila-envio {
    display: none;
}

/* =============MODAL ENVIO POR ZONA====================*/

.zona-opciones {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.zona-opcion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(250, 234, 234, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.zona-opcion:hover {
    background: rgba(185, 74, 14, 0.15);
    border-color: #cf9a5c;
    transform: translateY(-2px);
}

.zona-opcion-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.zona-opcion-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f1ed;
}

.zona-opcion-desc {
    font-size: 0.8rem;
    color: hsla(0, 7%, 97%, 0.55);
}

.zona-opcion-precio {
    font-size: 1rem;
    font-weight: 700;
    color: #cf9a5c;
    white-space: nowrap;
}

.paso-titulo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.paso-titulo i {
    font-size: 1.05rem;
    color: #cf9a5c;
}

/*====================== SCROLL ENTRE FOTOS=========================*/

.producto-detalle-img {
    position: relative;
    overflow: hidden;
}

.galeria-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.galeria-track img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.galeria-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.galeria-flecha:hover {
    background: #cf9a5c;
}

.galeria-flecha-izq {
    left: 0.8rem;
}

.galeria-flecha-der {
    right: 0.8rem;
}

.galeria-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, width 0.3s ease;
}

.dot.active {
    width: 32px;
    background: #cf9a5c;
}

.entrega-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}

.entrega-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1;
    padding: 0 16px;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: hsla(0, 7%, 97%, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.entrega-tab.active {
    background: #cf9a5c;
    border-color: #cf9a5c;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(207, 154, 92, 0.35);
}

.entrega-info {
    font-size: 0.85rem;
    font-weight: 300;
    color: hsla(0, 7%, 97%, 0.75);
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.entrega-info:empty {
    display: none;
}
.color-selector {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.color-selector-label {
    display: block;
    font-size: 0.95rem;
    color:rgba(255, 255, 255, 0.728);
    margin-bottom: 0.6rem;
}

.color-selector-label strong {
    color: #cf9a5c;
    font-weight: 600;
}

.color-opciones {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    border-color: #cf9a5c;
    box-shadow: 0 0 0 3px rgba(207, 154, 92, 0.35);
}
/*======================= 404 =======================*/

.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-404-content {
    text-align: center;
    max-width: 500px;
}

.error-404-numero {
    font-size: 6rem;
    font-weight: 700;
    color: #cf9a5c;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.error-404-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsla(0, 7%, 97%, 0.9);
    margin-bottom: 0.8rem;
}

.error-404-content p {
    font-size: 1rem;
    font-weight: 300;
    color: hsla(0, 7%, 97%, 0.65);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/*======================= ESTADO DE PAGO =======================*/

.estado-pago {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.estado-pago-content {
    text-align: center;
    max-width: 480px;
}

.estado-icono {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.estado-icono-exito {
    background: rgba(37, 211, 101, 0.517);
    color: #07e859;
    border: 2px solid rgba(37, 211, 102, 0.4);
}

.estado-icono-pendiente {
    background: rgba(255, 89, 0, 0.342);
    color: #cf9a5c;
    border: 2px solid rgba(255, 89, 0, 0.4);
}

.estado-icono-error {
    background: rgba(159, 31, 42, 0.681);
    color: #eb0f22;
    border: 2px solid rgba(230, 57, 70, 0.4);
}

.estado-pago-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsla(0, 7%, 97%, 0.9);
    margin-bottom: 0.8rem;
}

.estado-pago-content p {
    font-size: 1rem;
    font-weight: 300;
    color: hsla(0, 7%, 97%, 0.65);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.estado-pago-botones {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-verproductos-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: hsla(0, 7%, 97%, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-verproductos-outline:hover {
    border-color: #cf9a5c;
    color: #cf9a5c;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1ebe5b;
    transform: translateY(-2px);
}

/* ================== COLORES A PEDIDO ================== */

/* Botón "+6 colores a pedido" */
.btn-colores-pedido {
    margin-top: 0.9rem;
    padding: 0.2rem 1rem;
    font: inherit;
    font-size: 0.85rem;
    color: #cf9a5c;
    background: transparent;
    border: 1px dashed rgba(207, 154, 92, 0.6);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.btn-colores-pedido:hover {
    background: rgba(207, 154, 92, 0.1);
    border-color: #cf9a5c;
}
.btn-colores-pedido.active {
    border-style: solid;
    border-color: #cf9a5c;
    background: rgba(207, 154, 92, 0.15);
}

/* "(a pedido)" al lado del nombre del color */
.color-a-pedido-tag {
    font-weight: 400;
    opacity: 0.7;
}

/* Etiqueta sobre la foto: "Referencia del color · ..." */
.producto-detalle-img {
    position: relative;
}
.galeria-referencia {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    color: #eee7e7;
    background: rgba(20, 26, 21, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.galeria-referencia.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Recuadro de color cuando todavía no hay foto */
.galeria-placeholder {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.galeria-placeholder span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ================== MODAL ================== */

.modal-colores {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 15, 11, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-colores.active {
    opacity: 1;
    visibility: visible;
}

.modal-colores-box {
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    color: #eee7e7e0;
    background: linear-gradient(145deg, rgb(77, 91, 78), rgb(35, 44, 37));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
    scrollbar-color: #cf9a5c transparent;
}
.modal-colores.active .modal-colores-box {
    transform: translateY(0) scale(1);
}

.modal-colores-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.modal-colores-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.modal-colores-header p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(238, 231, 231, 0.65);
    max-width: 480px;
}

.modal-colores-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.modal-colores-close:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: rotate(90deg);
}

/* Grilla de colores */
.modal-colores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.color-pedido-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
    font: inherit;
    text-align: left;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.color-pedido-card:hover {
    border-color: #cf9a5c;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.color-pedido-foto {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-pedido-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.color-pedido-foto span {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.color-pedido-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.2rem;
}
.color-pedido-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}
.color-pedido-info strong {
    font-size: 0.95rem;
    font-weight: 600;
}
.color-pedido-card small {
    padding: 0 0.2rem 0.2rem;
    font-size: 0.75rem;
    color: rgba(238, 231, 231, 0.55);
}

/* Celular: 2 columnas */
@media (max-width: 600px) {
    .modal-colores {
        padding: 1rem;
    }
    .modal-colores-box {
        padding: 1.4rem;
        border-radius: 20px;
        max-height: 88vh;
    }
    .modal-colores-header h2 {
        font-size: 1.3rem;
    }
    .modal-colores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}
/* Círculos y botón "a pedido" en la misma fila */
.color-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.color-selector-label {
    flex-basis: 100%;
}
.btn-colores-pedido {
    margin-top: 0;
}

/* ================== PÁGINA LEGAL (términos y condiciones) ================== */

.legal {
    width: calc(100% - 2rem);
    max-width: 760px;
    margin: 3rem auto;
    padding: 2.5rem;
    color: #eee7e7e0;
    background: linear-gradient(145deg, rgba(77, 91, 78, 0.92), rgba(35, 44, 37, 0.96));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.legal-volver {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #cf9a5c;
    text-decoration: none;
}
.legal-volver:hover {
    text-decoration: underline;
}

.legal h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.legal-fecha {
    font-size: 0.85rem;
    color: rgba(238, 231, 231, 0.55);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #cf9a5c;
    margin: 2rem 0 0.7rem;
}

.legal p,
.legal li {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
}

.legal p {
    margin-bottom: 0.7rem;
}

.legal ul {
    padding-left: 1.2rem;
    margin-bottom: 0.7rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal li::marker {
    color: #cf9a5c;
}

.legal strong {
    font-weight: 700;
    color: #f5f0e8;
}

.legal a:not(.legal-volver) {
    color: #cf9a5c;
    text-decoration: none;
}
.legal a:not(.legal-volver):hover {
    text-decoration: underline;
}

.legal h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f0e8;
    margin: 1.4rem 0 0.5rem;
}
@media (max-width: 600px) {
    .legal {
        margin: 1.5rem auto;
        padding: 1.6rem 1.3rem;
        border-radius: 20px;
    }
    .legal h1 {
        font-size: 1.6rem;
    }
}

/* ================== INFORMACIÓN Y SEGURIDAD (acordeón) ================== */

.info-seguridad {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Título que se toca */
.info-seguridad summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #eee7e7e0;
    cursor: pointer;
    list-style: none;          /* saca el triangulito del navegador */
    transition: color 0.3s;
}

.info-seguridad summary i {
    margin-right: 0.5rem;
    color: #cf9a5c;
}

.info-seguridad summary::-webkit-details-marker {
    display: none;             /* lo mismo para Safari */
}

/* Chevron a la derecha que gira al abrir */
.info-seguridad summary::after {
    content: "›";
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 0;
    color: #cf9a5c;
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.info-seguridad[open] summary::after {
    transform: rotate(-90deg);
}

.info-seguridad summary:hover {
    color: #cf9a5c;
}

/* Contenido */
.info-seguridad-contenido {
    padding: 0 0 1.2rem;
    font-size: 0.88rem;
    color: rgba(238, 231, 231, 0.8);
}

.info-seguridad-contenido h4 {
    margin: 0.6rem 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cf9a5c;
}

/* Tabla de datos: dato a la izquierda, valor a la derecha */
.info-electrica {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.45rem 1.2rem;
    margin: 0 0 1.2rem;
}

.info-electrica dt {
    font-weight: 600;
    color: #eee7e7e0;
}

.info-electrica dd {
    margin: 0;
}

.info-seguridad-contenido ul {
    padding-left: 1.1rem;
    margin: 0 0 1rem;
}

.info-seguridad-contenido li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.info-seguridad-contenido li::marker {
    color: #cf9a5c;
}

.info-seguridad-mas {
    font-size: 0.8rem;
    color: rgba(238, 231, 231, 0.6);
}

.info-seguridad-mas a {
    color: #cf9a5c;
    text-decoration: none;
}

.info-seguridad-mas a:hover {
    text-decoration: underline;
}

/* Celular: datos uno debajo del otro */
@media (max-width: 600px) {
    .info-electrica {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    .info-electrica dd {
        margin-bottom: 0.5rem;
    }
}

.producto-divisor {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.1rem 0;
}

.caracteristicas-diseno {
    margin: 1rem 0;
}

.caracteristicas-diseno summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: hsla(0, 7%, 97%, 0.721);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s;
    justify-content: space-between;
}

.caracteristicas-diseno summary::-webkit-details-marker {
    display: none;
}

.caracteristicas-diseno summary::after {
    content: "›";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 0;
    color: #cf9a5c;
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.caracteristicas-diseno[open] summary::after {
    transform: rotate(-90deg);
}

.caracteristicas-diseno summary:hover {
    color: #e0b27a;
}

.caracteristicas-diseno .producto-especificaciones {
    margin-top: 0.8rem;
}

.caracteristicas-diseno summary i {
    margin-right: 0.5rem;
    color: #cf9a5c;
}

@media (min-width: 992px) {
    .producto-detalle-grid {
        max-width: 1040px;
    }
}
@media (max-width: 600px) {
    .color-dot {
        width: 26px;
        height: 26px;
    }

    .color-opciones {
        gap: 0.5rem;
    }

    .btn-colores-pedido {
        padding: 0.15rem 0.8rem;
        font-size: 0.78rem;
    }
}
.galeria-contador {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(8px);
}

/* Ocultamos el "01" fijo viejo */
.producto-detalle-img::before {
    display: none;
}
.producto-botones .btn-comprar {
    flex: 1;
    min-width: 0;
}

@media (max-width: 400px) {
    .producto-botones {
        flex-direction: column;
    }
}

.seccion-rotulo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.4rem 0 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #cf9a5c;
}

.seccion-rotulo::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}