﻿/* Tienda web (Shop/Index.aspx). Todo bajo .mpTienda para no tocar el tema del club. Mismo lenguaje que Ticketing/General/Process/process.css. */
.mpTienda {
    --mpt-acento: #1d1d1f;
    --mpt-suave: #f6f7f8;
    --mpt-linea: #e3e6e4;
    --mpt-gris: #636b66;
    --mpt-ok: #15803d;
    --mpt-okf: #e3f4e9;
    --mpt-ambar: #b45309;
    --mpt-ambarf: #fff7e6;
    --mpt-error: #b42318;
    --mpt-errorf: #fdecea;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 16px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    text-align: left;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
}
.mpTienda *, .mpTienda *::before, .mpTienda *::after { box-sizing: border-box; }
.mpTienda h1, .mpTienda h2, .mpTienda h3 { text-transform: none; letter-spacing: normal; color: inherit !important; font-weight: 800; }
.mpTienda a { color: inherit; }
.mpTienda button { font: inherit; }
.mpTienda [v-cloak] { display: none; }
.mpTienda .mpt-vista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }

/* CABECERA */
.mpTienda .mpt-cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mpTienda .mpt-cab h1 { margin: 0; font-size: 30px; line-height: 1.1; flex: 1; min-width: 140px; }
.mpTienda .mpt-buscar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--mpt-linea); border-radius: 999px; padding: 0 14px; width: 280px; max-width: 100%; background: #fff; color: var(--mpt-gris); }
.mpTienda .mpt-buscar input { border: 0; outline: 0; padding: 9px 0; font: inherit; font-size: 14px; width: 100%; background: transparent; color: #1d1d1f; box-shadow: none; margin: 0; height: auto; }
.mpTienda .mpt-buscar:focus-within { border-color: var(--mpt-acento); }
.mpTienda .mpt-btn-carro { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--mpt-acento); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; background: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-btn-carro .mpt-n { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--mpt-acento); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.mpTienda svg.mpt-ico { width: 18px; height: 18px; flex: none; }

/* SECCIONES Y ORDEN */
.mpTienda .mpt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.mpTienda .mpt-chip { border: 1.5px solid var(--mpt-linea); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; background: #fff; text-decoration: none; white-space: nowrap; display: inline-block; }
.mpTienda .mpt-chip:hover { border-color: #b9bfbc; }
.mpTienda .mpt-chip.sel { background: var(--mpt-acento); border-color: var(--mpt-acento); color: #fff; }
.mpTienda .mpt-chip small { color: var(--mpt-gris); font-weight: 500; margin-left: 4px; font-size: 13px; }
.mpTienda .mpt-chip.sel small { color: #cfd2d6; }
.mpTienda .mpt-barra-orden { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mpt-gris); font-size: 14px; flex-wrap: wrap; }
.mpTienda .mpt-barra-orden label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.mpTienda .mpt-barra-orden select { border: 1px solid var(--mpt-linea); border-radius: 8px; padding: 6px 10px; color: #1d1d1f; background: #fff; font: inherit; font-size: 14px; height: auto; width: auto; }

/* REJILLA Y TARJETAS */
.mpTienda .mpt-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mpTienda .mpt-card { border: 1px solid var(--mpt-linea); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; min-width: 0; }
.mpTienda .mpt-foto { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--mpt-linea); }
.mpTienda .mpt-foto img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; display: block; }
/* Sin imagen: icono SVG gris, el mismo placeholder que las tarjetas CMS */
.mpTienda .mpt-sinfoto { background: #f4f5f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4c9c7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / 48px 48px no-repeat; }
.mpTienda .mpt-badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3; }
.mpTienda .mpt-badge.ag { background: #eceef1; color: var(--mpt-gris); }
.mpTienda .mpt-badge.ul { background: var(--mpt-ambarf); color: var(--mpt-ambar); }
.mpTienda .mpt-card.agotado .mpt-foto img { opacity: .5; }
.mpTienda .mpt-cuerpo { padding: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.mpTienda .mpt-sec { font-size: 12px; color: var(--mpt-gris); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.mpTienda .mpt-card h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpTienda .mpt-card h3 a { text-decoration: none; }
.mpTienda .mpt-card h3 a:hover { text-decoration: underline; }
.mpTienda .mpt-precio { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-card.agotado .mpt-precio { color: var(--mpt-gris); }
.mpTienda .mpt-pie { padding: 0 14px 14px; }

/* BOTONES */
.mpTienda .mpt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; line-height: 1.2; border: 1.5px solid var(--mpt-acento); background: #fff; color: var(--mpt-acento); cursor: pointer; text-decoration: none; text-align: center; }
.mpTienda .mpt-btn:hover { background: var(--mpt-suave); }
.mpTienda .mpt-btn.lleno { background: var(--mpt-acento); color: #fff; }
.mpTienda .mpt-btn.lleno:hover { background: #3a3a3d; }
.mpTienda .mpt-btn.ancho { width: 100%; }
.mpTienda .mpt-btn.grande { padding: 13px 20px; font-size: 16px; }
.mpTienda .mpt-btn.ok { border-color: var(--mpt-ok); background: var(--mpt-okf); color: var(--mpt-ok); }
.mpTienda .mpt-btn[disabled] { border-color: var(--mpt-linea); color: #9aa19e; background: var(--mpt-suave); cursor: default; }
.mpTienda .mpt-enlace { background: none; border: 0; padding: 0; color: var(--mpt-gris); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* AVISOS */
.mpTienda .mpt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 12px; background: #1d1d1f; color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mpTienda .mpt-toast a { color: #9fd3ff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mpTienda .mpt-aviso { border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; background: var(--mpt-ambarf); color: var(--mpt-ambar); }
.mpTienda .mpt-aviso.error { background: var(--mpt-errorf); color: var(--mpt-error); }
.mpTienda .mpt-aviso.ok { background: var(--mpt-okf); color: var(--mpt-ok); }
.mpTienda .mpt-aviso ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }
.mpTienda .mpt-vacio { text-align: center; padding: 40px 20px; display: grid; gap: 12px; justify-items: center; border: 1px solid var(--mpt-linea); border-radius: 14px; background: #fff; }
.mpTienda .mpt-vacio .mpt-circulo { width: 64px; height: 64px; border-radius: 50%; background: var(--mpt-suave); display: grid; place-items: center; color: var(--mpt-gris); }
.mpTienda .mpt-vacio .mpt-circulo svg { width: 30px; height: 30px; }
.mpTienda .mpt-vacio h2 { margin: 0; font-size: 20px; }
.mpTienda .mpt-vacio p { margin: 0; color: var(--mpt-gris); }
.mpTienda .mpt-cargando { opacity: .6; pointer-events: none; }

/* FICHA */
.mpTienda .mpt-migas { font-size: 14px; color: var(--mpt-gris); display: flex; flex-wrap: wrap; gap: 6px; }
.mpTienda .mpt-migas a { text-decoration: none; }
.mpTienda .mpt-migas a:hover { text-decoration: underline; }
.mpTienda .mpt-migas b { color: #1d1d1f; font-weight: 600; }
.mpTienda .mpt-ficha { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mpTienda .mpt-ficha .mpt-foto { border: 1px solid var(--mpt-linea); border-radius: 14px; overflow: hidden; }
.mpTienda .mpt-ficha .mpt-foto img { inset: 32px; width: calc(100% - 64px); height: calc(100% - 64px); }
.mpTienda .mpt-info { display: grid; gap: 16px; align-content: start; }
.mpTienda .mpt-info h1 { margin: 0; font-size: 30px; line-height: 1.1; }
.mpTienda .mpt-info .mpt-precio { font-size: 28px; }
.mpTienda .mpt-iva { font-size: 13px; color: var(--mpt-gris); font-weight: 500; }
.mpTienda .mpt-estado { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.mpTienda .mpt-estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mpTienda .mpt-estado.ok { color: var(--mpt-ok); }
.mpTienda .mpt-estado.ul { color: var(--mpt-ambar); }
.mpTienda .mpt-estado.ag { color: var(--mpt-gris); }
.mpTienda .mpt-cantidad { display: inline-flex; align-items: center; border: 1.5px solid var(--mpt-linea); border-radius: 999px; background: #fff; flex: none; }
.mpTienda .mpt-cantidad button { width: 40px; height: 40px; border: 0; background: none; font-weight: 700; font-size: 18px; cursor: pointer; color: #1d1d1f; padding: 0; border-radius: 50%; }
.mpTienda .mpt-cantidad button[disabled] { color: #c4c9c7; cursor: default; }
.mpTienda .mpt-cantidad span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-cantidad.peq button { width: 30px; height: 30px; font-size: 15px; }
.mpTienda .mpt-cantidad.peq span { min-width: 24px; font-size: 14px; }
.mpTienda .mpt-fila-compra { display: flex; gap: 12px; align-items: center; }
.mpTienda .mpt-fila-compra .mpt-btn { flex: 1; }
.mpTienda .mpt-cajas { display: grid; gap: 8px; }
.mpTienda .mpt-caja { display: flex; gap: 10px; align-items: center; background: var(--mpt-suave); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.mpTienda .mpt-desc h2 { margin: 0 0 6px; font-size: 16px; }
.mpTienda .mpt-desc .mpt-texto { color: #3c4240; line-height: 1.55; overflow-wrap: anywhere; }
.mpTienda .mpt-desc .mpt-texto.plano { white-space: pre-line; }
.mpTienda .mpt-desc .mpt-texto p { margin: 0 0 8px; }
.mpTienda .mpt-desc .mpt-texto h1, .mpTienda .mpt-desc .mpt-texto h2, .mpTienda .mpt-desc .mpt-texto h3, .mpTienda .mpt-desc .mpt-texto h4 { font-size: 15px; margin: 12px 0 6px; font-weight: 700; }
.mpTienda .mpt-desc .mpt-texto ul, .mpTienda .mpt-desc .mpt-texto ol { margin: 0 0 8px; padding-left: 20px; }
.mpTienda .mpt-props { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.mpTienda .mpt-props dt { color: var(--mpt-gris); font-weight: 500; }
.mpTienda .mpt-props dd { margin: 0; font-weight: 600; }

/* CARRO Y DATOS */
.mpTienda .mpt-pasos { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.mpTienda .mpt-pasos li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; margin: 0; border-radius: 999px; background: #fff; border: 1px solid var(--mpt-linea); color: var(--mpt-gris); font-size: 13px; font-weight: 600; list-style: none; }
.mpTienda .mpt-pasos li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mpt-suave); font-size: 12px; line-height: 1; }
.mpTienda .mpt-pasos li.act { color: #111; border-color: var(--mpt-acento); }
.mpTienda .mpt-pasos li.act b { background: var(--mpt-acento); color: #fff; }
.mpTienda .mpt-pasos li.hecho b { background: var(--mpt-okf); color: var(--mpt-ok); }
.mpTienda .mpt-dos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mpTienda .mpt-col { display: grid; gap: 16px; min-width: 0; }
.mpTienda .mpt-tarjeta { border: 1px solid var(--mpt-linea); border-radius: 14px; padding: 20px; display: grid; gap: 14px; background: #fff; min-width: 0; }
.mpTienda .mpt-tarjeta h2 { margin: 0; font-size: 20px; }
.mpTienda .mpt-linea { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--mpt-linea); }
.mpTienda .mpt-linea.primera { border-top: 0; padding-top: 0; }
.mpTienda .mpt-linea .mpt-foto { width: 72px; border: 1px solid var(--mpt-linea); border-radius: 10px; overflow: hidden; }
.mpTienda .mpt-linea .mpt-foto img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.mpTienda .mpt-linea .mpt-nom { font-weight: 700; text-decoration: none; display: block; }
.mpTienda .mpt-linea .mpt-uni { font-size: 13px; color: var(--mpt-gris); }
.mpTienda .mpt-linea .mpt-imp { font-weight: 800; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-resumen { position: sticky; top: 16px; }
.mpTienda .mpt-r-fila { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-r-fila.tot { font-size: 20px; font-weight: 800; border-top: 1px solid var(--mpt-linea); padding-top: 12px; }
.mpTienda .mpt-r-mini { display: grid; gap: 8px; font-size: 14px; }
.mpTienda .mpt-r-mini div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.mpTienda .mpt-r-mini span:first-child { color: #3c4240; }
.mpTienda .mpt-sesion { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mpt-suave); border-radius: 10px; padding: 12px 14px; font-size: 14px; flex-wrap: wrap; }
.mpTienda .mpt-sesion a { font-weight: 700; }
.mpTienda .mpt-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.mpTienda .mpt-campos .ancho { grid-column: 1 / -1; }
.mpTienda .mpt-campo { display: grid; gap: 5px; align-content: start; }
.mpTienda .mpt-campo label { font-size: 13px; font-weight: 600; margin: 0; }
.mpTienda .mpt-campo label small { color: var(--mpt-gris); font-weight: 500; }
.mpTienda .mpt-campo input { border: 1px solid #cfd4d2; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: #1d1d1f; width: 100%; height: auto; margin: 0; box-shadow: none; }
.mpTienda .mpt-campo input:focus { outline: 0; border-color: var(--mpt-acento); box-shadow: 0 0 0 3px rgba(29, 29, 31, .08); }
.mpTienda .mpt-campo input[readonly] { background: var(--mpt-suave); color: var(--mpt-gris); }
.mpTienda .mpt-campo.err input { border-color: var(--mpt-error); }
.mpTienda .mpt-campo .mpt-msg { font-size: 12.5px; color: var(--mpt-error); }
.mpTienda .mpt-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mpTienda .mpt-opcion { border: 1.5px solid var(--mpt-linea); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; margin: 0; font-weight: 700; background: #fff; text-align: left; }
.mpTienda .mpt-opcion.sel { border-color: var(--mpt-acento); box-shadow: inset 0 0 0 1px var(--mpt-acento); }
.mpTienda .mpt-opcion .mpt-rad { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9aa19e; flex: none; }
.mpTienda .mpt-opcion.sel .mpt-rad { border: 5px solid var(--mpt-acento); }
.mpTienda .mpt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; margin: 0; cursor: pointer; }
.mpTienda .mpt-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--mpt-acento); }
.mpTienda .mpt-check a { font-weight: 600; }
.mpTienda .mpt-check.err { color: var(--mpt-error); }
.mpTienda .mpt-seguro { font-size: 12.5px; color: var(--mpt-gris); text-align: center; }

/* BARRA INFERIOR (solo movil) */
.mpTienda .mpt-barra { display: none; }
.mpTienda .mpt-movil { display: none; }

@media (max-width: 1000px) {
    .mpTienda .mpt-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mpTienda .mpt-dos { grid-template-columns: 1fr; }
    .mpTienda .mpt-resumen { position: static; }
}
@media (max-width: 760px) {
    .mpTienda { padding: 24px 12px 96px; gap: 14px; }
    .mpTienda .mpt-vista { gap: 14px; }
    .mpTienda .mpt-cab h1 { font-size: 24px; }
    .mpTienda .mpt-cab .mpt-btn-carro { display: none; }
    .mpTienda .mpt-buscar { width: 100%; order: 3; }
    .mpTienda .mpt-chips.mpt-secciones { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
    .mpTienda .mpt-chips.mpt-secciones::-webkit-scrollbar { display: none; }
    .mpTienda .mpt-chip { font-size: 13px; padding: 6px 12px; }
    .mpTienda .mpt-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mpTienda .mpt-foto img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
    .mpTienda .mpt-cuerpo { padding: 10px; gap: 4px; }
    .mpTienda .mpt-card h3 { font-size: 14px; min-height: 35px; }
    .mpTienda .mpt-precio { font-size: 16px; }
    .mpTienda .mpt-pie { padding: 0 10px 10px; }
    .mpTienda .mpt-pie .mpt-btn { padding: 7px 10px; font-size: 13px; }
    .mpTienda .mpt-ficha { grid-template-columns: 1fr; gap: 18px; }
    .mpTienda .mpt-ficha .mpt-foto img { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
    .mpTienda .mpt-info h1 { font-size: 22px; }
    .mpTienda .mpt-info .mpt-precio { font-size: 24px; }
    .mpTienda .mpt-info .mpt-fila-compra { display: none; }
    .mpTienda .mpt-tarjeta { padding: 14px; }
    .mpTienda .mpt-linea { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
    .mpTienda .mpt-linea .mpt-foto { width: 56px; }
    .mpTienda .mpt-linea .mpt-imp { min-width: 0; }
    .mpTienda .mpt-linea .mpt-cantidad { grid-column: 2; justify-self: start; }
    .mpTienda .mpt-campos, .mpTienda .mpt-opciones { grid-template-columns: 1fr; }
    .mpTienda .mpt-escritorio { display: none; }
    .mpTienda .mpt-movil { display: inline; }
    .mpTienda .mpt-barra { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--mpt-linea); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
    .mpTienda .mpt-barra .mpt-t { flex: 1; font-size: 13px; color: var(--mpt-gris); min-width: 0; }
    .mpTienda .mpt-barra .mpt-t b { display: block; font-size: 18px; color: #1d1d1f; font-variant-numeric: tabular-nums; }
    .mpTienda .mpt-barra .mpt-btn { flex: none; }
    .mpTienda .mpt-barra .mpt-btn.crece { flex: 1; }
    .mpTienda .mpt-toast { bottom: 88px; }
}
