:root {
    --color-fondo: #0d0d0d;
    --color-acento: #f5b400;
    --color-texto: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.75);
}
/* BOTÓN FLOTANTE OFERTAS Y VENDIDOS */
.btn-oferta, .btn-vendido {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff004c, #ff8c00);
    color: #fff;
    font-size: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 0, 76, 0.5);
    animation: pulso 1.5s infinite;
    z-index: 9999;
}

.btn-vendido {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
    animation: pulso-blue 1.5s infinite;
}

@keyframes pulso {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 76, .6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(255, 0, 76, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 76, 0);
    }
}

@keyframes pulso-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, .6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* MODAL OFERTAS Y VENDIDOS */
.modal-oferta, .modal-Vendido {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.modal-oferta.activo, .modal-Vendido.activo {
    opacity: 1;
    pointer-events: auto;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
    }

    to {
        transform: scale(1);
    }
}

.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-fondo);
}

.titulo-modal {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 35px;
    color: var(--color-fondo);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}

/* SCROLL BONITO */
.modal-contenido::-webkit-scrollbar {
    width: 8px;
}

.modal-contenido::-webkit-scrollbar-thumb {
    background: var(--color-acento);
    border-radius: 10px;
}

.modal-contenido {
    background: #e8f2ff;
    width: 90%;
    height: 500px;
    padding: 30px;
    border-radius: 22px;
    overflow-y: auto;
    position: relative;
    animation: zoomIn .35s ease;
}

/* GALERÍA OFERTAS */
.galeria-ofertas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.mySwiperOferta {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.card-auto {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid red;
}

.contenidoOferta {
    background: #000;
    border-radius: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===== ENCABEZADO ===== */
.encabezado {
    padding: 25px 20px 10px;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a, #000);
}

.subtitulo {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-acento);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.titulo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

/* ===== DETALLES ===== */
.detalles {
    list-style: none;
    padding: 0 25px;
    margin: 15px 0;
    flex-grow: 1;
}

.detalles li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalles li strong {
    color: #fff;
    font-size: 1.1rem;
}

/* ===== IMAGEN ===== */
.imagen-auto {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    background: #111;
}

.imagen-auto img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swiper-slide-active .imagen-auto img {
    transform: scale(1.05);
}

/* ===== BOTÓN WHATSAPP ===== */
.btn-whatsapp {
    background: var(--color-acento);
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background: #fff;
}

/* ===== TABLET / DESKTOP ===== */
@media (max-width: 768px) {
    .card-auto {
        max-width: 520px;
    }

    .detalles {
        font-size: 1.05rem;
    }
}
