* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000000;
    color: #ffd9f0;
    min-height: 100vh;
}

/* Fondo: imagen + desenfoque */
.bg-image {
    position: fixed;
    inset: 0;
    background: url("../img/fondo.jpg") center center / cover no-repeat;
    filter: blur(2px);
    transform: scale(1.05);
    z-index: -3;
}

/* HEADER */
.header {
    text-align: center;
    padding-top: 0.6rem;
}

/* BOTÓN HAMBURGER (MENÚ) */
.menu-toggle {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(20, 20, 20, 0.96);
    color: #f5f5f5;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.menu-toggle span {
    font-size: 0.8rem;
}

/* MENÚ LATERAL */
.menu-principal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: rgba(10,10,10,0.98);
    border-right: 1px solid rgba(255,79,163,0.25);
    box-shadow: 8px 0 25px rgba(0,0,0,0.8);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 40;
    padding: 4.2rem 1rem 1.2rem;
    overflow-x: hidden;
}

.menu-principal.open {
    transform: translateX(0);
}

.menu-principal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    max-height: calc(100% - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-principal ul::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.menu-principal a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.86rem;
    color: #f2f2f2;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.menu-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.menu-label {
    line-height: 1.2;
    text-align: left;
}

.menu-principal a:hover {
    background: rgba(255,79,163,0.13);
    border-color: rgba(255,79,163,0.7);
    transform: translateX(3px);
}

/* Marquee */
.marquee {
    width: 100%;
    overflow: hidden;
    background: #000000;
}

.marquee-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee-move 22s linear infinite;
}

.marquee-text {
    display: inline-block;
    padding: 0.5rem 2rem 0.5rem 0;
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    color: #ff4fa3;
    text-shadow:
        0 0 6px rgba(255, 79, 163, 0.9),
        0 0 12px rgba(255, 79, 163, 0.9);
}

@keyframes marquee-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MAIN / CATÁLOGO */
.main {
    padding: 1.6rem clamp(0.8rem, 3vw, 3rem) 6rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.intro {
    text-align: center;
    margin-bottom: 1.8rem;
}

.intro h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow:
        0 0 10px rgba(255, 79, 163, 1),
        0 0 22px rgba(255, 79, 163, 0.9);
}

.intro p {
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
    padding: 0.4rem 1.4rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 999px;
    border: 1px solid rgba(255, 79, 163, 0.9);
    box-shadow:
        0 0 12px rgba(255, 79, 163, 0.8),
        0 0 18px rgba(0, 0, 0, 1);
    color: #ffd9f0;
}

.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* Tarjetas */
.producto {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 79, 163, 0.7);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow:
        0 0 16px rgba(255, 79, 163, 0.55),
        0 0 26px rgba(0, 0, 0, 0.9);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.producto:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 22px rgba(255, 79, 163, 0.95),
        0 0 32px rgba(0, 0, 0, 1);
    border-color: rgba(255, 144, 197, 1);
}

.producto-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 79, 163, 0.8);
    margin-bottom: 0.6rem;
    background: #000000;
}

.producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #ff4fa3;
}

.descripcion {
    opacity: 0.9;
    font-size: 0.85rem;
}

.precio {
    color: #ffb3d8;
    margin: 0.5rem 0;
    font-weight: 700;
}

/* Controles de cantidad */
.cantidad-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-cantidad {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #ff4fa3;
    background: #000000;
    color: #ff4fa3;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 79, 163, 0.7);
    font-size: 1.05rem;
}

.btn-cantidad:hover {
    box-shadow: 0 0 14px rgba(255, 79, 163, 1);
}

.input-cantidad {
    width: 50px;
    background: #050505;
    color: #ffd9f0;
    text-align: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
}

/* BOTÓN FLOTANTE DEL CARRITO */
.carrito-barra {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.btn-carrito {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.4rem;
    border-radius: 15px;
    border: 1px solid #95ff4f;
    background: #000000;
    color: #dcffd9;
    cursor: pointer;
    box-shadow:
        0 0 5px rgba(30, 255, 0, 0.5),
        0 0 26px rgba(0, 0, 0, 1);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-carrito:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 5px rgb(25, 199, 5),
        0 0 32px rgba(0, 0, 0, 1);
}

.carrito-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(124, 243, 77, 0.9));
}

.carrito-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.carrito-text span {
    color: #ffd9f0;
}

/* MODAL principal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 30;
}

.modal.visible {
    display: flex;
}

.modal-contenido {
    background: #050505;
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: 1rem;
    width: clamp(92%, 70vw, 650px);
    max-width: 95%;
    border: 1px solid #ff4fa3;
    position: relative;
}

.modal h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #ff4fa3;
}

.modal-cerrar {
    background: none;
    border: none;
    color: #ffd9f0;
    font-size: 1.4rem;
    cursor: pointer;
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
}

.lista-resumen {
    max-height: 240px;
    overflow-y: auto;
    margin: 0.7rem 0;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #555;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.modal-total {
    font-weight: 700;
    color: #ffb3d8;
    margin-bottom: 0.7rem;
}

/* Divisor entre resumen y métodos de pago */
.modal-divider {
    margin: 0.4rem 0 0.9rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 79, 163, 0.8),
        transparent
    );
}

/* MÉTODO DE PAGO ESTILO IMAGEN */
.modal-metodo-pago {
    background: #050505;
    border-radius: 1rem;
}

.metodo-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.1rem;
}

.metodo-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.7rem;
}

/* Tabs */
.pago-tabs {
    display: flex;
    gap: 0.4rem;
    background: #131313;
    padding: 0.3rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.pago-tab {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    color: #f0f0f0;
    font-weight: 500;
}

.pago-tab.active {
    background: #f5f5f5;
    color: #111111;
}

/* Card general */
.pago-card {
    display: none;
    border-radius: 1rem;
    border: 1px solid rgba(255,79,163,0.35);
    background: #080808;
    padding: 0.9rem;
}

.pago-card.active {
    display: block;
}

.pago-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

/* LOGOS: fondo transparente */
.pago-logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pago-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* plin-logo sin fondo de color */
.plin-logo {
    background: transparent;
    border-color: #27272a;
}

.pago-header-textos h3 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: #ffffff;
}

.pago-detalle {
    font-size: 0.85rem;
    color: #e0e0e0;
}

.pago-label {
    color: #9ca3af;
    margin-right: 0.2rem;
}

.pago-monto {
    font-weight: 600;
}

/* QR box */
.pago-qr-box {
    display: flex;
    justify-content: center;
    margin: 0.6rem 0;
}

/* fondo blanco para el QR */
.qr-inner {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.5rem;
}

/* MISMA MEDIDA PARA YAPE Y PLIN */
.img-qr {
    width: 220px;
    height: 220px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Acciones QR */
.pago-qr-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.6rem;
}

.btn-qr-action {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #27272a;
    background: #18181b;
    color: #f9fafb;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: 0.86rem;
    white-space: nowrap;
}

/* Texto de ayuda e instrucciones */
.pago-ayuda {
    font-size: 0.78rem;
    color: #d4d4d8;
    margin: 0.8rem 0 0.5rem;
}

.pago-pasos {
    margin-left: 1.2rem;
    font-size: 0.82rem;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Texto final antes de WhatsApp */
.instrucciones {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.instrucciones-final {
    margin-top: 0.9rem;
}

/* Botón WhatsApp */
.btn-whatsapp {
    width: 100%;
    padding: 0.8rem;
    border-radius: 999px;
    border: 1px solid #000000;
    cursor: pointer;
    background: #1eff00;
    font-weight: bold;
    color: #000000;
}

/* MODAL SECUNDARIO QR GRANDE */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 40;
}

.qr-modal.visible {
    display: flex;
}

.qr-modal-content {
    position: relative;
    background: #050505;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #ff4fa3;
    box-shadow: 0 0 22px rgba(255,79,163,0.9);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-modal-content img {
    width: 400px;        /* tamaño fijo para todos los QR */
    height: 400px;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain; /* evita deformación */
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.7rem;
}


.qr-modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Footer soporte */
.footer-soporte {
    text-align: center;
    padding: 10px 5px 14px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.footer-soporte a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 5px;
    background: linear-gradient(180deg, #ac0295 0%, #df0dcd 100%);
    color: #000000;
    border: none;
    border-radius: 40px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.12s ease-in-out;
}

.footer-soporte a::before {
    content: "📠";
    font-size: 1.2rem;
}

.footer-soporte a:active {
    transform: translateY(4px);
}

.footer-soporte a:hover {
    background: linear-gradient(180deg, #b810ce 0%, #830178 100%);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main {
        padding: 1.4rem 1rem 6rem;
    }
}

@media (max-width: 600px) {
    .catalogo {
        grid-template-columns: 1fr;
    }

    .btn-carrito {
        width: 90%;
        justify-content: center;
    }

    .marquee-text {
        font-size: 0.9rem;
    }

    .pago-qr-actions {
        flex-direction: column;
    }
}
