/* =========================================================
   PRIMERAS MARCAS MX
   SISTEMA VISUAL BASE
   ========================================================= */

:root {
    --pmx-blue: #063b70;
    --pmx-blue-dark: #052f59;
    --pmx-green: #58a832;
    --pmx-green-dark: #468c27;

    --pmx-white: #ffffff;
    --pmx-bg: #f5f7f9;
    --pmx-soft: #f7f9fb;

    --pmx-text: #24313d;
    --pmx-muted: #66727e;

    --pmx-border: #dfe5ea;
    --pmx-border-soft: #edf0f2;

    --pmx-danger: #a33030;

    --pmx-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08);

    --pmx-shadow-modal:
        0 24px 70px rgba(0, 0, 0, 0.22);

    --pmx-radius: 10px;
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--pmx-bg);
    color: var(--pmx-text);

    line-height: 1.5;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--pmx-white);

    border-bottom:
        1px solid var(--pmx-border);

    position: sticky;

    top: 0;

    z-index: 1000;
}


.header-inner {
    width: min(94%, 1400px);

    margin: 0 auto;

    min-height: 78px;

    display: flex;

    align-items: center;

    gap: 28px;
}


.brand {
    text-decoration: none;

    color: var(--pmx-blue);

    font-size: 24px;

    font-weight: 800;

    line-height: 0.9;

    letter-spacing: -0.5px;

    white-space: nowrap;
}


.brand span {
    color: var(--pmx-green);
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.search {
    flex: 1;

    display: flex;

    max-width: 720px;
}


.search input {
    width: 100%;

    min-height: 44px;

    padding: 0 16px;

    border:
        1px solid var(--pmx-border);

    border-right: 0;

    border-radius:
        8px 0 0 8px;

    font-size: 15px;

    outline: none;
}


.search input:focus {
    border-color:
        var(--pmx-blue);
}


.search button {
    min-width: 52px;

    border: 0;

    border-radius:
        0 8px 8px 0;

    background:
        var(--pmx-blue);

    color:
        var(--pmx-white);

    cursor: pointer;

    font-size: 18px;
}


.search button:hover {
    background:
        var(--pmx-blue-dark);
}


/* =========================================================
   ACCIONES HEADER
   ========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 18px;
}


.header-actions a {
    color:
        var(--pmx-blue);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.main-nav {
    background:
        var(--pmx-blue);
}


.nav-inner {
    width:
        min(94%, 1400px);

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    min-height:
        48px;

    gap:
        8px;
}


.nav-inner a {
    color:
        var(--pmx-white);

    text-decoration:
        none;

    padding:
        14px 16px;

    font-size:
        14px;

    font-weight:
        600;
}


.nav-inner a:hover {
    background:
        rgba(255, 255, 255, 0.12);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.page {
    width:
        min(94%, 1400px);

    margin:
        0 auto;

    padding:
        32px 0 60px;
}


.hero {
    background:
        var(--pmx-white);

    border-radius:
        var(--pmx-radius);

    padding:
        42px;

    box-shadow:
        var(--pmx-shadow);

    margin-bottom:
        34px;
}


.hero h1 {
    color:
        var(--pmx-blue);

    font-size:
        clamp(30px, 4vw, 48px);

    line-height:
        1.08;

    max-width:
        780px;

    margin-bottom:
        16px;
}


.hero p {
    color:
        var(--pmx-muted);

    font-size:
        18px;

    max-width:
        720px;
}


.hero strong {
    color:
        var(--pmx-green);
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.section-title {
    color:
        var(--pmx-blue);

    font-size:
        26px;

    margin-bottom:
        20px;
}


/* =========================================================
   CATEGORÍAS
   ========================================================= */

.category-grid {
    display:
        grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap:
        18px;

    margin-bottom:
        42px;
}


.category-card {
    background:
        var(--pmx-white);

    border:
        1px solid var(--pmx-border);

    border-radius:
        var(--pmx-radius);

    min-height:
        130px;

    padding:
        22px;

    text-decoration:
        none;

    color:
        var(--pmx-blue);

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        flex-end;

    transition:
        0.2s ease;

    cursor:
        pointer;
}


.category-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--pmx-shadow);

    border-color:
        var(--pmx-green);
}


.category-card strong {
    font-size:
        17px;
}


.category-card span {
    color:
        var(--pmx-muted);

    font-size:
        13px;

    margin-top:
        5px;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.product-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        20px;

    margin-bottom:
        42px;
}


.product-card {
    background:
        var(--pmx-white);

    border:
        1px solid var(--pmx-border);

    border-radius:
        var(--pmx-radius);

    overflow:
        hidden;

    transition:
        0.2s ease;

    display:
        flex;

    flex-direction:
        column;
}


.product-card:hover {
    box-shadow:
        var(--pmx-shadow);

    transform:
        translateY(-2px);
}


.product-image {
    height:
        220px;

    background:
        #eef2f5;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--pmx-muted);
}


.product-info {
    padding:
        18px;

    display:
        flex;

    flex-direction:
        column;

    flex: 1;
}


.product-brand {
    color:
        var(--pmx-green);

    font-size:
        12px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}


.product-name {
    color:
        var(--pmx-blue);

    font-size:
        16px;

    font-weight:
        700;

    margin:
        7px 0;
}


.product-code {
    color:
        var(--pmx-muted);

    font-size:
        12px;
}


/* =========================================================
   BOTÓN AGREGAR A COTIZACIÓN
   ========================================================= */

.btn-cotizar-producto {
    width:
        100%;

    margin-top:
        auto;

    padding:
        12px 14px;

    border:
        0;

    border-radius:
        7px;

    background:
        var(--pmx-blue);

    color:
        var(--pmx-white);

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        0.2s ease;
}


.btn-cotizar-producto:hover {
    background:
        var(--pmx-blue-dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background:
        var(--pmx-blue-dark);

    color:
        var(--pmx-white);

    padding:
        34px 0;
}


.footer-inner {
    width:
        min(94%, 1400px);

    margin:
        0 auto;

    font-size:
        13px;
}


/* =========================================================
   PANEL / MODAL DE COTIZACIÓN
   ========================================================= */

#pmx-panel-cotizacion {
    position:
        fixed;

    inset:
        0;

    background:
        rgba(13, 31, 48, 0.58);

    backdrop-filter:
        blur(2px);

    z-index:
        5000;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        22px;
}


#pmx-panel-cotizacion.visible {
    display:
        flex;
}


/* =========================================================
   DOCUMENTO DE COTIZACIÓN EN PANTALLA
   ========================================================= */

.pmx-cotizacion-contenido {
    position:
        relative;

    width:
        min(94vw, 900px);

    max-height:
        90vh;

    overflow-y:
        auto;

    background:
        var(--pmx-white);

    border-radius:
        14px;

    padding:
        34px 38px 38px;

    box-shadow:
        var(--pmx-shadow-modal);
}


/* Línea institucional superior */

.pmx-cotizacion-contenido::before {
    content:
        "";

    display:
        block;

    width:
        100%;

    height:
        5px;

    background:
        linear-gradient(
            90deg,
            var(--pmx-blue) 0%,
            var(--pmx-blue) 76%,
            var(--pmx-green) 76%,
            var(--pmx-green) 100%
        );

    border-radius:
        4px;

    margin-bottom:
        26px;
}


/* =========================================================
   CERRAR
   ========================================================= */

#pmx-cerrar-cotizacion {
    position:
        absolute;

    right:
        20px;

    top:
        16px;

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        transparent;

    border:
        0;

    border-radius:
        50%;

    font-size:
        29px;

    line-height:
        1;

    cursor:
        pointer;

    color:
        var(--pmx-blue);
}


#pmx-cerrar-cotizacion:hover {
    background:
        #f0f3f6;
}


/* =========================================================
   ENCABEZADO COTIZACIÓN
   ========================================================= */

.pmx-cotizacion-contenido h2 {
    color:
        var(--pmx-blue);

    font-size:
        28px;

    line-height:
        1.15;

    margin-bottom:
        8px;
}


.pmx-cotizacion-contenido > p {
    color:
        var(--pmx-muted);

    margin-bottom:
        6px;

    font-size:
        15px;
}


/* =========================================================
   LISTA DE PRODUCTOS COTIZADOS
   ========================================================= */

#pmx-lista-cotizacion {
    margin:
        26px 0 10px;
}


.pmx-item-cotizacion {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr) 120px auto;

    align-items:
        center;

    gap:
        22px;

    padding:
        18px 0;

    border-bottom:
        1px solid var(--pmx-border);
}


/* =========================================================
   INFORMACIÓN DEL PRODUCTO
   ========================================================= */

.pmx-item-info {
    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;

    min-width:
        0;
}


.pmx-item-info strong {
    display:
        block;

    color:
        var(--pmx-blue);

    font-size:
        15px;

    line-height:
        1.35;
}


.pmx-item-info span {
    display:
        block;

    color:
        var(--pmx-muted);

    font-size:
        12px;

    line-height:
        1.45;
}


/* Compatibilidad con elementos antiguos */

.pmx-item-cotizacion > div > strong {
    color:
        var(--pmx-blue);
}


.pmx-item-cotizacion span {
    font-size:
        13px;

    color:
        var(--pmx-muted);
}


/* =========================================================
   IMPORTE DEL PRODUCTO
   ========================================================= */

.pmx-item-precio {
    min-width:
        110px;

    text-align:
        right;

    color:
        var(--pmx-blue);
}


.pmx-item-precio strong {
    font-size:
        16px;

    color:
        var(--pmx-blue);
}


/* =========================================================
   CONTROLES CANTIDAD
   ========================================================= */

.pmx-item-controles {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        7px;

    white-space:
        nowrap;
}


.pmx-item-controles button {
    min-width:
        30px;

    height:
        32px;

    border:
        1px solid var(--pmx-border);

    background:
        var(--pmx-white);

    padding:
        5px 9px;

    border-radius:
        6px;

    cursor:
        pointer;

    color:
        var(--pmx-blue);

    transition:
        0.15s ease;
}


.pmx-item-controles button:hover {
    border-color:
        var(--pmx-green);

    background:
        #f7fbf5;
}


.pmx-item-controles span {
    min-width:
        22px;

    text-align:
        center;

    color:
        var(--pmx-text);

    font-weight:
        700;
}


.pmx-item-controles .pmx-eliminar {
    margin-left:
        4px;

    color:
        var(--pmx-danger);

    min-width:
        auto;
}


/* =========================================================
   RESUMEN DE COTIZACIÓN
   ========================================================= */

#pmx-resumen-cotizacion {
    width:
        min(100%, 430px);

    margin:
        28px 0 0 auto;

    padding:
        22px 24px;

    background:
        var(--pmx-soft);

    border:
        1px solid var(--pmx-border);

    border-radius:
        10px;
}


.pmx-resumen-linea {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        22px;

    padding:
        5px 0;

    color:
        var(--pmx-text);

    font-size:
        14px;
}


.pmx-resumen-linea strong {
    color:
        var(--pmx-blue);
}


.pmx-resumen-linea.pmx-total {
    margin-top:
        12px;

    padding-top:
        14px;

    border-top:
        1px solid var(--pmx-border);

    font-size:
        21px;

    font-weight:
        800;
}


.pmx-resumen-linea.pmx-total span,
.pmx-resumen-linea.pmx-total strong {
    color:
        var(--pmx-blue);
}


.pmx-nota-precio {
    margin-top:
        10px;

    color:
        var(--pmx-muted);

    font-size:
        11px;

    text-align:
        right;
}


/* =========================================================
   FUTURO BLOQUE PDF
   ========================================================= */

.pmx-acciones-cotizacion {
    margin-top:
        24px;

    display:
        grid;

    grid-template-columns:
        1fr;

    gap:
        10px;
}


/*
   Este estilo queda preparado para el botón
   que agregaremos en el siguiente paso:
   "Descargar cotización en PDF"
*/

#pmx-descargar-pdf {
    width:
        100%;

    padding:
        14px 18px;

    border:
        2px solid var(--pmx-blue);

    border-radius:
        8px;

    background:
        var(--pmx-white);

    color:
        var(--pmx-blue);

    font-size:
        15px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        0.2s ease;
}


#pmx-descargar-pdf:hover {
    background:
        var(--pmx-blue);

    color:
        var(--pmx-white);
}


/* =========================================================
   PRECIO ESPECIAL
   ========================================================= */

.pmx-precio-especial {
    margin-top:
        28px;

    padding:
        24px;

    border:
        1px solid #d9e6d2;

    border-left:
        5px solid var(--pmx-green);

    border-radius:
        10px;

    background:
        #f8fbf6;
}


.pmx-precio-especial strong {
    display:
        block;

    color:
        var(--pmx-blue);

    font-size:
        17px;

    line-height:
        1.35;

    margin-bottom:
        7px;
}


.pmx-precio-especial p {
    color:
        #53616d;

    font-size:
        14px;

    line-height:
        1.5;

    margin-bottom:
        16px;
}


#pmx-precio-especial {
    width:
        100%;

    padding:
        13px 18px;

    border:
        0;

    border-radius:
        7px;

    background:
        var(--pmx-green);

    color:
        var(--pmx-white);

    font-size:
        15px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        0.2s ease;
}


#pmx-precio-especial:hover {
    background:
        var(--pmx-green-dark);
}


/* =========================================================
   RESPONSIVE GENERAL
   ========================================================= */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .product-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 760px) {

    .header-inner {
        flex-wrap:
            wrap;

        padding:
            14px 0;

        gap:
            14px;
    }


    .search {
        order:
            3;

        flex-basis:
            100%;

        max-width:
            none;
    }


    .nav-inner {
        overflow-x:
            auto;
    }


    .nav-inner a {
        white-space:
            nowrap;
    }


    .hero {
        padding:
            28px 22px;
    }


    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .pmx-cotizacion-contenido {
        width:
            96vw;

        padding:
            28px 22px;
    }


    .pmx-item-cotizacion {
        grid-template-columns:
            1fr;

        gap:
            10px;
    }


    .pmx-item-precio {
        text-align:
            left;
    }


    .pmx-item-controles {
        justify-content:
            flex-start;
    }


    #pmx-resumen-cotizacion {
        width:
            100%;

        margin-left:
            0;
    }

}


/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */

@media (max-width: 480px) {

    .category-grid,
    .product-grid {
        grid-template-columns:
            1fr;
    }


    .header-actions {
        gap:
            10px;
    }


    #pmx-panel-cotizacion {
        padding:
            8px;
    }


    .pmx-cotizacion-contenido {
        width:
            100%;

        max-height:
            96vh;

        border-radius:
            10px;

        padding:
            24px 16px;
    }


    .pmx-cotizacion-contenido h2 {
        font-size:
            23px;
    }


    .pmx-precio-especial {
        padding:
            18px;
    }


    .pmx-resumen-linea.pmx-total {
        font-size:
            18px;
    }

}

/* =========================================================
   FICHA TÉCNICA PMX
   ========================================================= */
.btn-ver-ficha { width:100%; margin-top:14px; margin-bottom:7px; padding:10px 12px; border:1px solid #0a477e; border-radius:6px; background:#fff; color:#0a477e; font-weight:700; cursor:pointer; }
.btn-ver-ficha:hover { background:#f1f6fa; }
.pmx-ficha-modal { display:none; position:fixed; inset:0; z-index:3000; background:rgba(0,0,0,.55); padding:24px; overflow:auto; }
.pmx-ficha-modal.visible { display:flex; align-items:flex-start; justify-content:center; }
.pmx-ficha-contenido { position:relative; width:min(820px,100%); margin:30px auto; background:#fff; border-radius:12px; padding:30px; box-shadow:0 20px 60px rgba(0,0,0,.22); }
.pmx-ficha-cerrar { position:absolute; right:18px; top:12px; border:0; background:transparent; font-size:32px; cursor:pointer; color:#52606d; }
.pmx-ficha-marca { color:#42a62a; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.pmx-ficha-contenido h2 { color:#063b70; margin:8px 42px 8px 0; }
.pmx-ficha-codigo,.pmx-ficha-clasificacion { color:#66727e; margin-top:4px; }
.pmx-ficha-precio { margin-top:20px; color:#063b70; font-size:28px; font-weight:800; }
.pmx-ficha-precio span { font-size:14px; font-weight:600; }
.pmx-ficha-iva { color:#66727e; font-size:13px; margin-top:2px; }
.pmx-ficha-contenido h3 { margin-top:28px; color:#063b70; }
.pmx-especificaciones { border-top:1px solid #e2e8ee; margin-top:10px; }
.pmx-spec { display:grid; grid-template-columns:minmax(180px,1fr) minmax(140px,1fr); gap:20px; padding:11px 4px; border-bottom:1px solid #e2e8ee; }
.pmx-spec span { color:#66727e; }
.pmx-spec strong { color:#263746; }
@media(max-width:600px){ .pmx-ficha-modal{padding:8px}.pmx-ficha-contenido{padding:24px 18px}.pmx-spec{grid-template-columns:1fr;gap:4px}.pmx-ficha-precio{font-size:24px} }


/* =========================================================
   FILTROS DINÁMICOS PMX — v19
   ========================================================= */
.pmx-filtros { margin: 18px 0 26px; padding: 18px; border: 1px solid #dfe6ec; border-radius: 10px; background: #fff; }
.pmx-filtros-encabezado { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.pmx-filtros-encabezado strong { display:block; color:#063b70; font-size:18px; }
.pmx-filtros-encabezado span { display:block; margin-top:4px; color:#66727e; font-size:13px; }
.pmx-filtros-controles { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.pmx-filtro-grupo { display:flex; flex-direction:column; gap:6px; }
.pmx-filtro-etiqueta { color:#263746; font-size:12px; font-weight:700; }
.pmx-filtro-select { width:100%; min-height:42px; padding:8px 10px; border:1px solid #cbd5df; border-radius:6px; background:#fff; color:#263746; }
.pmx-filtro-select:disabled { background:#f3f5f7; color:#8a949e; }
.pmx-limpiar-filtros { border:1px solid #0a477e; border-radius:6px; background:#fff; color:#0a477e; padding:8px 12px; font-weight:700; cursor:pointer; white-space:nowrap; }
.pmx-limpiar-filtros:disabled { opacity:.45; cursor:default; }
.pmx-filtros-estado { margin-top:12px; color:#66727e; font-size:13px; }
.pmx-filtros-cargando { color:#66727e; font-size:13px; }
@media(max-width:600px){ .pmx-filtros-encabezado{flex-direction:column}.pmx-limpiar-filtros{width:100%}.pmx-filtros-controles{grid-template-columns:1fr} }


/* =========================================================
   FOTOGRAFÍAS DE PRODUCTO PMX — v20
   ========================================================= */
.pmx-ficha-galeria { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:20px 0 8px; }
.pmx-ficha-galeria img { width:100%; aspect-ratio:1/1; object-fit:contain; border:1px solid #e2e8ee; border-radius:8px; background:#fff; }
.pmx-ficha-sin-imagen { margin:20px 0 8px; min-height:160px; display:flex; align-items:center; justify-content:center; border:1px dashed #cbd5df; border-radius:8px; color:#66727e; background:#f8fafb; }
@media(max-width:600px){ .pmx-ficha-galeria{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px} }


/* =========================================================
   PMX v21 — MODOS DE BÚSQUEDA
   ========================================================= */
.pmx-modos-busqueda {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 18px;
}
.pmx-modo-btn {
  border:1px solid #d7dee6;
  background:#fff;
  color:#063b70;
  border-radius:8px;
  padding:13px 10px;
  font-weight:800;
  cursor:pointer;
}
.pmx-modo-btn:hover,.pmx-modo-btn.activo {
  border-color:#063b70;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.pmx-modo-contenido {
  margin:0 0 18px;
  padding:16px;
  border:1px solid #e1e6eb;
  border-radius:8px;
  background:#fff;
}
@media (max-width:700px){
  .pmx-modos-busqueda{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* PMX v21 etapa 2 — buscador como brújula */
.pmx-search-zone{flex:1;max-width:720px;display:flex;flex-direction:column;gap:7px;}
.pmx-search-zone .search{max-width:none;width:100%;}
.pmx-search-zone .pmx-modos-busqueda{margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.pmx-search-zone .pmx-modo-btn{padding:7px 8px;font-size:12px;}
@media(max-width:760px){.pmx-search-zone{order:3;flex-basis:100%;max-width:none;width:100%;}.pmx-search-zone .pmx-modos-busqueda{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:460px){.pmx-search-zone .pmx-modos-busqueda{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* =========================================================
   PMX v21 etapa 3 — búsqueda limpia + modos protagonistas
   ========================================================= */
.product-image{background:#fff;}
.pmx-search-zone{display:block;max-width:720px;}
.pmx-busqueda-experiencia{margin:0 0 18px;}
.pmx-afinar-titulo{font-size:24px;color:#063b70;margin:0 0 14px;font-weight:800;}
.pmx-modos-busqueda{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px;}
.pmx-modo-btn{min-height:92px;padding:13px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px solid #d7dee6;border-radius:10px;color:#063b70;cursor:pointer;}
.pmx-modo-btn strong{font-size:15px;}
.pmx-modo-btn small{font-size:11px;font-weight:500;color:#66727e;line-height:1.25;text-align:center;}
.pmx-modo-icono{font-size:20px;line-height:1;}
.pmx-modo-btn:hover,.pmx-modo-btn.activo{border-color:#063b70;box-shadow:0 3px 10px rgba(0,0,0,.08);}
.pmx-modo-contenido{margin:0 0 16px;padding:14px;border:1px solid #e1e6eb;border-radius:8px;background:#fff;}
.pmx-rapido-titulo{font-weight:800;color:#063b70;margin-bottom:10px;}
.pmx-rapido-opciones{display:flex;gap:10px;flex-wrap:wrap;}
.pmx-rapido-opcion{min-width:150px;padding:12px 18px;border:1px solid #cfd8e2;border-radius:8px;background:#fff;color:#063b70;font-weight:800;cursor:pointer;}
.pmx-rapido-opcion small{display:block;margin-top:3px;font-weight:500;color:#66727e;}
.pmx-rapido-opcion:hover,.pmx-rapido-opcion.activo{border-color:#063b70;box-shadow:0 2px 8px rgba(0,0,0,.08);}
@media(max-width:760px){.pmx-modos-busqueda{grid-template-columns:repeat(2,minmax(0,1fr));}.pmx-afinar-titulo{font-size:21px;}}


/* =========================================================
   PMX v21 etapa 4 — cierre RÁPIDO + densidad catálogo
   ========================================================= */
@media (min-width: 1101px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .product-image { height: 185px; }
  .product-info { padding: 14px; }
  .product-name { font-size: 14px; line-height: 1.32; }
}
.product-image { background:#fff; }
.pmx-rapido-vacio { color:#66727e; padding:4px 0; }


/* =========================================================
   PMX v21 etapa 6 — GUIADO conectado a API
   ========================================================= */
.pmx-guiado-lista{display:grid;gap:16px;}
.pmx-guiado-guia{min-width:0;}
.pmx-guiado-titulo{font-weight:800;color:#063b70;font-size:18px;margin:0 0 5px;}
.pmx-guiado-descripcion{margin:0 0 12px;color:#4d5965;line-height:1.45;}
.pmx-guiado-imagen{display:block;width:100%;height:auto;max-width:100%;border:1px solid #e1e6eb;border-radius:8px;background:#fff;}
.pmx-guiado-vacio{color:#66727e;padding:4px 0;}
@media(max-width:760px){
  .pmx-guiado-titulo{font-size:17px;}
  .pmx-guiado-descripcion{font-size:14px;}
  .pmx-modo-contenido{overflow-x:hidden;}
}


/* =========================================================
   PMX v21 etapa 7 — disponibilidad inteligente + DIRECTO
   ========================================================= */
.pmx-modo-btn.no-disponible,
.pmx-modo-btn:disabled{
  opacity:.38;
  cursor:default;
  box-shadow:none;
  filter:grayscale(.35);
}
.pmx-modo-btn.no-disponible:hover,
.pmx-modo-btn:disabled:hover{
  border-color:#d7dee6;
  box-shadow:none;
}
.pmx-guiado-directo{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #d7e2ec;
  border-radius:8px;
  background:#f7fafc;
  color:#063b70;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pmx-guiado-buscar-codigo{
  flex:0 0 auto;
  border:1px solid #063b70;
  border-radius:7px;
  background:#fff;
  color:#063b70;
  font-weight:800;
  padding:9px 13px;
  cursor:pointer;
}
.pmx-guiado-buscar-codigo:hover{background:#eef5fb;}
.pmx-buscador-pulso{animation:pmxBuscadorPulso .9s ease-in-out 4;}
@keyframes pmxBuscadorPulso{
  0%,100%{box-shadow:0 0 0 0 rgba(6,59,112,0);}
  50%{box-shadow:0 0 0 5px rgba(6,59,112,.20);}
}
.pmx-buscador-pulso-fuerte{animation:pmxBuscadorPulsoFuerte .9s ease-in-out 4;}
@keyframes pmxBuscadorPulsoFuerte{
  0%,100%{box-shadow:0 0 0 0 rgba(6,59,112,0);}
  50%{box-shadow:0 0 0 10px rgba(6,59,112,.24);}
}
@media(max-width:760px){
  .pmx-guiado-directo{align-items:stretch;flex-direction:column;}
  .pmx-guiado-buscar-codigo{width:100%;}
}


/* =========================================================
   ETAPA 9A — CARRITO PMX V1 · VISTA COMPLETA
   ========================================================= */

body.pmx-carrito-abierto main.page,
body.pmx-carrito-abierto footer {
  display: none !important;
}

#pmx-panel-cotizacion {
  position: static;
  inset: auto;
  z-index: auto;
  display: none;
  width: 100%;
  min-height: calc(100vh - 120px);
  padding: 0;
  background: #f6f8fa;
  backdrop-filter: none;
}

#pmx-panel-cotizacion.visible { display: block; }

.pmx-carrito-pagina {
  width: min(94%, 1400px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.pmx-carrito-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.pmx-carrito-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--pmx-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.pmx-carrito-encabezado h1 {
  margin: 0 0 6px;
  color: var(--pmx-blue);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.pmx-carrito-encabezado p { margin: 0; color: var(--pmx-muted); }

.pmx-carrito-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 30px;
  align-items: start;
}

.pmx-carrito-productos,
.pmx-carrito-resumen-card {
  background: var(--pmx-white);
  border: 1px solid var(--pmx-border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(13,31,48,.07);
}

.pmx-carrito-productos { padding: 6px 26px; }

.pmx-item-cotizacion {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr) 130px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--pmx-border);
}
.pmx-item-cotizacion:last-child { border-bottom: 0; }

.pmx-item-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eef1f3;
  border-radius: 10px;
}
.pmx-item-imagen img { width: 100%; height: 145px; object-fit: contain; display: block; }
.pmx-item-sin-imagen { color: var(--pmx-muted); font-weight: 800; letter-spacing: .08em; }

.pmx-item-info { gap: 8px; }
.pmx-item-info .pmx-item-nombre { color: var(--pmx-blue); font-size: 18px; line-height: 1.35; }
.pmx-item-meta { color: var(--pmx-muted); font-size: 13px; }
.pmx-item-unitario { color: var(--pmx-text) !important; font-size: 20px !important; font-weight: 800; }
.pmx-item-unitario small { font-size: 11px; font-weight: 700; color: var(--pmx-muted); }
.pmx-item-unitario em { display: block; margin-top: 3px; font-size: 11px; font-style: normal; font-weight: 500; color: var(--pmx-muted); }

.pmx-item-precio { text-align: right; align-self: start; padding-top: 4px; }
.pmx-item-precio span { display: block; margin-bottom: 3px; font-size: 11px; color: var(--pmx-muted); }
.pmx-item-precio strong { font-size: 21px; }

.pmx-item-controles { justify-content: flex-start; gap: 14px; margin-top: 8px; }
.pmx-cantidad-control { display: inline-flex; align-items: center; border: 1px solid var(--pmx-border); border-radius: 8px; overflow: hidden; }
.pmx-cantidad-control button { border: 0; border-radius: 0; min-width: 38px; height: 36px; }
.pmx-cantidad-control span { min-width: 38px; text-align: center; font-weight: 800; color: var(--pmx-text); }
.pmx-item-controles .pmx-eliminar { height: 36px; border: 0; background: transparent; text-decoration: underline; }

.pmx-carrito-resumen-card { position: sticky; top: 18px; padding: 25px; }
.pmx-carrito-resumen-card h2 { margin: 0 0 18px; color: var(--pmx-blue); font-size: 20px; }
#pmx-resumen-cotizacion { width: 100%; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.pmx-resumen-linea { padding: 9px 0; }
.pmx-resumen-linea.pmx-total { margin-top: 12px; padding-top: 17px; font-size: 22px; }
.pmx-resumen-linea.pmx-total small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--pmx-muted); }
.pmx-nota-precio { text-align: left; }

.pmx-envio-siguiente {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid var(--pmx-border);
  border-bottom: 1px solid var(--pmx-border);
  font-size: 13px;
}
.pmx-envio-siguiente strong { max-width: 210px; text-align: right; color: var(--pmx-blue); font-size: 12px; }

.pmx-continuar-btn,
.pmx-seguir-btn,
.pmx-seguir-link {
  font: inherit;
  cursor: pointer;
}
.pmx-continuar-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--pmx-green);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.pmx-continuar-btn:hover { filter: brightness(.96); }
.pmx-continuar-btn:disabled { opacity: .45; cursor: not-allowed; }
.pmx-seguir-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  border: 1px solid var(--pmx-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pmx-blue);
  font-weight: 700;
}
.pmx-seguir-link { border: 0; background: transparent; color: var(--pmx-blue); font-weight: 700; }
.pmx-carrito-vacio { padding: 44px 20px; text-align: center; }
.pmx-carrito-vacio h2 { color: var(--pmx-blue); }
.pmx-carrito-vacio .pmx-seguir-btn { width: auto; padding: 0 22px; }

@media (max-width: 900px) {
  .pmx-carrito-layout { grid-template-columns: 1fr; }
  .pmx-carrito-resumen-card { position: static; }
  .pmx-item-cotizacion { grid-template-columns: 130px minmax(0,1fr); }
  .pmx-item-precio { grid-column: 2; text-align: left; padding-top: 0; }
}

@media (max-width: 620px) {
  .pmx-carrito-pagina { width: min(92%, 1400px); padding-top: 24px; }
  .pmx-carrito-encabezado { align-items: flex-start; }
  .pmx-seguir-link { display: none; }
  .pmx-carrito-productos { padding: 4px 16px; }
  .pmx-item-cotizacion { grid-template-columns: 92px minmax(0,1fr); gap: 15px; padding: 22px 0; }
  .pmx-item-imagen { min-height: 96px; padding: 5px; }
  .pmx-item-imagen img { height: 90px; }
  .pmx-item-info .pmx-item-nombre { font-size: 15px; }
  .pmx-item-unitario { font-size: 17px !important; }
  .pmx-item-precio { grid-column: 1 / -1; text-align: right; }
  .pmx-item-controles { flex-wrap: wrap; }
  .pmx-carrito-resumen-card { padding: 21px 18px; }
}

/* =========================================================
   ETAPA 9A R2 - Densidad e-commerce / carrito profesional
   ========================================================= */
.pmx-checkout-pasos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 420px;
  padding-bottom: 2px;
}
.pmx-checkout-pasos i {
  width: 48px;
  height: 1px;
  margin: 15px 8px 0;
  background: #b9c5d1;
}
.pmx-paso { display: grid; justify-items: center; gap: 5px; color: var(--pmx-muted); }
.pmx-paso span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid #aebdca; border-radius: 50%; background: #fff;
  color: #687b8c; font-size: 13px; font-weight: 800;
}
.pmx-paso small { font-size: 11px; white-space: nowrap; }
.pmx-paso.activo { color: var(--pmx-blue); font-weight: 800; }
.pmx-paso.activo span { border-color: var(--pmx-blue); background: var(--pmx-blue); color: #fff; }
.pmx-checkout-pasos .pmx-paso.activo + i { background: var(--pmx-blue); }

.pmx-carrito-columna-productos { min-width: 0; }
.pmx-carrito-tabla-cabecera {
  display: grid;
  grid-template-columns: minmax(360px,1fr) 145px 125px 120px;
  gap: 18px;
  padding: 15px 24px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--pmx-border);
  border-radius: 12px;
  color: var(--pmx-blue);
  font-size: 12px;
  font-weight: 800;
}
.pmx-carrito-tabla-cabecera span:not(:first-child) { text-align: center; }
.pmx-carrito-tabla-cabecera span:last-child { text-align: right; }

.pmx-carrito-productos { padding: 0 24px; }
.pmx-item-cotizacion {
  grid-template-columns: minmax(360px,1fr) 145px 125px 120px;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
}
.pmx-item-producto { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 20px; align-items: center; min-width: 0; }
.pmx-item-imagen { min-height: 145px; }
.pmx-item-imagen img { height: 135px; }
.pmx-item-info { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.pmx-item-info .pmx-eliminar { padding: 3px 0; border: 0; background: transparent; color: #b42318; text-decoration: underline; cursor: pointer; }
.pmx-item-unitario { display: block; text-align: center; color: var(--pmx-text) !important; }
.pmx-item-unitario strong { display: block; font-size: 19px; }
.pmx-item-unitario small { display: inline; margin-left: 3px; }
.pmx-item-unitario em { display: block; }
.pmx-item-controles { justify-content: center; margin: 0; }
.pmx-item-precio { align-self: center; padding: 0; text-align: right; }
.pmx-item-precio strong { font-size: 20px; }

.pmx-carrito-aviso {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  margin-top: 18px;
  padding: 17px 20px 17px 58px;
  position: relative;
  background: #eef5fb;
  border: 1px solid #d8e7f3;
  border-radius: 12px;
  color: var(--pmx-blue);
}
.pmx-carrito-aviso::before {
  content: "✓";
  position: absolute; left: 20px; top: 18px;
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 2px solid var(--pmx-blue); border-radius: 50%; font-weight: 900;
}
.pmx-carrito-aviso strong { grid-column: 1 / -1; font-size: 13px; }
.pmx-carrito-aviso span { grid-column: 1 / -1; color: var(--pmx-muted); font-size: 12px; }

.pmx-carrito-resumen-card { box-shadow: 0 10px 32px rgba(13,31,48,.09); }

@media (max-width: 1100px) {
  .pmx-carrito-tabla-cabecera { display: none; }
  .pmx-item-cotizacion { grid-template-columns: minmax(0,1fr) 130px; }
  .pmx-item-producto { grid-row: 1 / 3; }
  .pmx-item-unitario, .pmx-item-controles, .pmx-item-precio { text-align: right; justify-content: flex-end; }
  .pmx-item-precio { grid-column: 2; }
}
@media (max-width: 900px) {
  .pmx-carrito-encabezado { align-items: flex-start; flex-direction: column; }
  .pmx-checkout-pasos { min-width: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .pmx-checkout-pasos { justify-content: space-between; }
  .pmx-checkout-pasos i { flex: 1; width: auto; margin-left: 5px; margin-right: 5px; }
  .pmx-paso small { font-size: 9px; }
  .pmx-carrito-productos { padding: 0 16px; }
  .pmx-item-cotizacion { display: block; padding: 20px 0; }
  .pmx-item-producto { grid-template-columns: 90px minmax(0,1fr); gap: 14px; }
  .pmx-item-imagen { min-height: 95px; }
  .pmx-item-imagen img { height: 85px; }
  .pmx-item-unitario, .pmx-item-controles, .pmx-item-precio { margin-top: 12px; text-align: left; justify-content: flex-start; }
  .pmx-item-precio::before { content: "Total: "; color: var(--pmx-muted); font-size: 12px; }
  .pmx-carrito-aviso { padding-left: 50px; }
  .pmx-carrito-aviso::before { left: 16px; }
}


/* ETAPA 9A R3 - confirmacion no intrusiva al agregar */
.pmx-aviso-agregado {
  position: fixed;
  top: 92px;
  right: 28px;
  z-index: 5000;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 18px;
  border: 1px solid #b9d8ad;
  border-radius: 10px;
  background: #f2faef;
  color: #174d12;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(10,45,80,.14);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.pmx-aviso-agregado.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) {
  .pmx-aviso-agregado { top: 78px; right: 16px; left: 16px; max-width: none; }
}


/* =========================================================
   ETAPA 9B-2 — ENTREGA DESPUES DE VALIDACION SERVER-SIDE
   ========================================================= */
body.pmx-entrega-abierta main.page,
body.pmx-entrega-abierta footer { display:none !important; }
#pmx-panel-entrega { display:none; width:100%; min-height:calc(100vh - 120px); background:#f6f8fa; }
#pmx-panel-entrega.visible { display:block; }
.pmx-entrega-pagina { width:min(94%,1400px); margin:0 auto; padding:34px 0 64px; }
.pmx-paso.completado span { background:#e9f5e5; border-color:#83bd70; color:#2f7d24; }
.pmx-entrega-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:28px; align-items:start; margin-top:26px; }
.pmx-entrega-form-card { background:#fff; border:1px solid #dce3e8; border-radius:14px; padding:28px; box-shadow:0 8px 26px rgba(13,31,48,.06); }
.pmx-entrega-form-card h2 { margin:0 0 5px; color:var(--pmx-blue); font-size:22px; }
.pmx-entrega-ayuda { margin:0 0 22px; color:var(--pmx-muted); font-size:13px; }
.pmx-entrega-grid { display:grid; grid-template-columns:1fr 1fr; gap:17px 18px; }
.pmx-entrega-grid label { display:flex; flex-direction:column; gap:7px; color:#17324a; font-size:13px; font-weight:700; }
.pmx-entrega-grid input,.pmx-entrega-grid textarea { width:100%; box-sizing:border-box; border:1px solid #cfd9e1; border-radius:8px; padding:11px 12px; font:inherit; color:#183247; background:#fff; }
.pmx-entrega-grid input:focus,.pmx-entrega-grid textarea:focus { outline:2px solid rgba(0,66,124,.15); border-color:var(--pmx-blue); }
.pmx-entrega-grid input[readonly] { background:#f5f7f9; color:#607080; }
.pmx-campo-ancho { grid-column:1/-1; }
.pmx-estado-cobertura { margin-top:18px; padding:14px 16px; border-radius:9px; background:#f5f7f9; color:#66727e; font-size:13px; line-height:1.45; }
.pmx-promociones { display:flex; gap:10px; margin-top:18px; padding:15px 16px; border:1px solid #dce3e8; border-radius:9px; font-size:13px; }
.pmx-promociones input { margin-top:3px; }
.pmx-promociones span { display:flex; flex-direction:column; gap:4px; }
.pmx-promociones small { color:var(--pmx-muted); font-weight:400; }
.pmx-entrega-resumen { position:sticky; top:20px; }
.pmx-validado-servidor { display:inline-block; margin-bottom:13px; padding:6px 9px; border-radius:999px; background:#eef8e9; color:#315f22; font-size:11px; font-weight:800; }
.pmx-entrega-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:14px 0; border-bottom:1px solid #e3e8ec; font-size:12px; }
.pmx-entrega-item div { display:flex; flex-direction:column; gap:4px; }
.pmx-entrega-item small { color:var(--pmx-muted); }
.pmx-entrega-total { display:flex; justify-content:space-between; align-items:end; gap:14px; padding:22px 0; color:var(--pmx-blue); font-size:20px; font-weight:900; }
.pmx-entrega-total small { display:block; color:var(--pmx-muted); font-size:10px; font-weight:400; }
.pmx-precio-actualizado { margin:18px 0 0; padding:14px 18px; border:1px solid #e9c86b; border-radius:10px; background:#fff8df; color:#644d0a; }
.pmx-precio-actualizado strong,.pmx-precio-actualizado span { display:block; }
.pmx-precio-actualizado span { margin-top:3px; font-size:12px; }
@media(max-width:900px){.pmx-entrega-layout{grid-template-columns:1fr}.pmx-entrega-resumen{position:static}}
@media(max-width:620px){.pmx-entrega-grid{grid-template-columns:1fr}.pmx-campo-ancho{grid-column:auto}.pmx-entrega-form-card{padding:20px}}

/* ETAPA 9B-2 R5 — dirección estructurada + celular MX */
.pmx-telefono-control { display:flex; width:100%; align-items:stretch; }
.pmx-prefijo-telefono { display:flex; align-items:center; white-space:nowrap; border:1px solid #cfd9e1; border-right:0; border-radius:8px 0 0 8px; padding:0 12px; background:#f5f7f9; color:#17324a; font-weight:700; }
.pmx-telefono-control input { border-radius:0 8px 8px 0; min-width:0; }
.pmx-telefono-control:focus-within .pmx-prefijo-telefono { border-color:var(--pmx-blue); }

/* ETAPA 9B-4 — Promesa visible + transición segura a Pago */
.pmx-promesa-carrito strong { max-width: 260px; }
.pmx-pago-promesa { margin: 18px 0; padding: 14px 16px; background:#eef8e9; border-radius:10px; color:#315f22; font-size:18px; }
body.pmx-pago-abierto main.page,
body.pmx-pago-abierto footer { display:none !important; }
#pmx-panel-pago { display:none; }
#pmx-panel-pago.visible { display:block; }

/* PC-3B-1 R4 — exclusividad visual de etapas del checkout */
body.pmx-pago-abierto #pmx-panel-cotizacion,
body.pmx-pago-abierto #pmx-panel-entrega { display:none !important; }
body.pmx-carrito-abierto #pmx-panel-pago,
body.pmx-carrito-abierto #pmx-panel-entrega { display:none !important; }
body.pmx-entrega-abierta #pmx-panel-cotizacion,
body.pmx-entrega-abierta #pmx-panel-pago { display:none !important; }


/* =========================================================
   PC-3B-1 — Mercado Pago Card Payment Brick
   ========================================================= */
.pmx-mp-card { margin-top:20px; padding:20px; background:#fff; border:1px solid #e4e7eb; border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,.05); }
.pmx-mp-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:8px; }
.pmx-mp-card-head h3 { margin:4px 0 0; font-size:20px; color:#1f2937; }
.pmx-mp-proveedor { white-space:nowrap; font-weight:700; font-size:13px; color:#374151; background:#f3f4f6; border-radius:999px; padding:7px 10px; }
.pmx-mp-privacidad { margin:10px 0 14px; color:#5b6472; font-size:14px; line-height:1.5; }
.pmx-mp-estado { margin:0 0 14px; padding:10px 12px; border-radius:9px; font-size:13px; line-height:1.4; background:#f3f4f6; color:#4b5563; }
.pmx-mp-estado.listo { background:#eef8e9; color:#315f22; }
.pmx-mp-estado.aviso { background:#fff7e6; color:#7a4b00; }
.pmx-mp-estado.error { background:#fff0f0; color:#8a1f1f; }
#cardPaymentBrick_container { min-height:120px; }
@media (max-width:700px) { .pmx-mp-card { padding:14px; } .pmx-mp-card-head { flex-direction:column; } }

/* PMX49 — botón de identificación del carrito: legibilidad y centrado */
#pmx-continuar-compra {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 66px;
  height: auto;
  padding: 12px 18px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* PMX UX-PAGO R2 — confirmación después de acreditación verificada */
.pmx-confirmacion-tarjeta{max-width:760px;margin:20px auto 48px;padding:38px 26px;text-align:center;background:#fff;border:1px solid #dce3e8;border-radius:16px;box-shadow:0 8px 26px rgba(13,31,48,.06)}
.pmx-confirmacion-icono{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 16px;border-radius:50%;background:#e7f7e9;color:#198344;font-size:42px;font-weight:700}
.pmx-confirmacion-tarjeta h2{margin:0 0 14px;color:#073c70;font-size:30px}
.pmx-confirmacion-boton-pagado{display:inline-block;background:#208a45;color:white;padding:12px 34px;border-radius:10px;font-weight:800;font-size:18px;margin:0 0 16px}
.pmx-confirmacion-tarjeta p{line-height:1.6;color:#34445b}
.pmx-confirmacion-nota{font-size:13px;background:#f0f7fd;padding:12px;border-radius:9px}
.pmx-confirmacion-acciones{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:26px}
.pmx-confirmacion-acciones a{display:inline-block;text-decoration:none;padding:13px 20px;border-radius:9px;font-weight:700}
.pmx-confirmacion-accion-principal{background:#073c70;color:#fff!important}
.pmx-confirmacion-accion-secundaria{background:#e9f0f6;color:#073c70!important}
@media(max-width:620px){.pmx-confirmacion-tarjeta{padding:26px 16px}.pmx-confirmacion-acciones a{width:100%}}

/* UX-PAGO R3: mensaje honesto en Mi cuenta y regreso a la tienda */
.pmx-pago-reciente{background:#eaf7ed;color:#155d31;border:1px solid #b9dfc3;border-radius:9px;padding:13px 15px;margin:12px 0;line-height:1.5;font-weight:600}
.pmx-pago-reciente[hidden]{display:none!important}
.pmx-cuenta-acciones{display:flex;justify-content:center;padding:16px 0 28px}
.pmx-cuenta-acciones a{display:inline-block;background:#238c47;color:white;text-decoration:none;font-weight:700;padding:13px 26px;border-radius:9px}

/* DIR-V1 — Visual aprobado, demostración sin persistencia */
.pmx-dir-checkout{border:1px solid #d7e4ef;border-radius:12px;padding:16px;margin:14px 0 20px;background:#fbfdff}
.pmx-dir-checkout-head,.pmx-dir-title,.pmx-dir-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pmx-dir-checkout-head strong{color:#073b73;font-size:15px}.pmx-dir-checkout-head a,.pmx-dir-card-actions button{color:#0868b6;font-size:13px}
.pmx-dir-empty{display:flex;align-items:center;gap:16px;background:#f2f8fe;border:1px dashed #b6d2e8;border-radius:10px;padding:20px;margin:14px 0;color:#143d66}
.pmx-dir-empty p{font-size:13px;line-height:1.5;margin:6px 0 0;color:#536b80}.pmx-dir-empty-icon{font-size:29px;color:#1670bd}
.pmx-dir-demo-note{font-size:12px;background:#fff7e7;border:1px solid #f2d7a5;border-radius:7px;padding:9px 12px;color:#76501b;margin:12px 0}
.pmx-dir-account{grid-column:1/-1}.pmx-dir-title{margin-bottom:12px}.pmx-dir-title h2{margin:0}.pmx-dir-title p{margin:5px 0;color:#5b7185;font-size:13px}
.pmx-dir-primary{background:#07529a!important;color:#fff!important;border:0!important;border-radius:7px!important;padding:12px 18px!important;cursor:pointer;font-weight:700}
.pmx-dir-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:15px 0}
.pmx-dir-card{border:1px solid #d7e0e8;border-radius:11px;padding:17px;background:#fff}.pmx-dir-card-head{display:flex;gap:8px;justify-content:space-between;align-items:center;color:#073b73}.pmx-dir-card p{font-size:13px;line-height:1.65;color:#334d61}.pmx-dir-pill{background:#e5f4dc;color:#316927;border-radius:12px;padding:4px 8px;font-size:11px}
.pmx-dir-card-actions{display:flex;flex-wrap:wrap;gap:10px}.pmx-dir-card-actions button{background:transparent;border:0;padding:3px;cursor:pointer}.pmx-dir-card-actions button:last-child{color:#ad3333}.pmx-dir-card-actions button:disabled{color:#789;cursor:default}
.pmx-dir-editor{border:1px solid #c8d8e7;border-radius:12px;padding:20px;background:#fff;box-shadow:0 10px 30px #0a315014}.pmx-dir-editor[hidden]{display:none!important}.pmx-dir-editor-head h3{margin:0 0 15px;color:#073b73}.pmx-dir-editor-head button{border:0;background:transparent;font-size:20px;cursor:pointer}
.pmx-dir-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pmx-dir-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#173b5d}.pmx-dir-form-grid input,.pmx-dir-form-grid textarea{border:1px solid #ccd8e3;border-radius:7px;padding:10px;font:inherit;min-width:0}.pmx-dir-wide{grid-column:1/-1}.pmx-dir-default{display:flex;gap:8px;align-items:center;margin:16px 0;font-size:13px}.pmx-dir-actions{display:flex;justify-content:flex-end;gap:10px}.pmx-dir-actions>button:first-child{background:#fff;border:1px solid #c5d2de;border-radius:7px;padding:10px 16px}
@media(max-width:650px){.pmx-dir-form-grid{grid-template-columns:1fr}.pmx-dir-wide{grid-column:auto}.pmx-dir-empty{align-items:flex-start}}

/* UX04: ventana informativa de pagos */
.pmx-ux04-overlay{position:fixed;inset:0;z-index:99999;background:rgba(12,25,39,.62);display:flex;align-items:center;justify-content:center;padding:20px}
.pmx-ux04-modal{position:relative;max-width:760px;width:100%;max-height:90vh;overflow:auto;background:white;color:#172a39;border-radius:14px;box-shadow:0 20px 70px rgba(0,0,0,.24);padding:28px;line-height:1.55}
.pmx-ux04-modal h2{font-size:1.35rem;margin:0 36px 15px 0}
.pmx-ux04-modal p{margin:0 0 12px}
.pmx-ux04-modal a{overflow-wrap:anywhere;color:#0863a5}
.pmx-ux04-cerrar{position:absolute;top:12px;right:15px;background:transparent;border:0;font-size:27px;cursor:pointer}
.pmx-ux04-aceptar{background:#135d86;color:white;border:0;border-radius:7px;padding:10px 22px;cursor:pointer;margin-top:6px}

/* FP-01D.1B: tarjetas de categorías compactas únicamente en móvil */
@media (max-width:650px){
 #categorias .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
 #categorias .category-card{min-width:0;min-height:104px;padding:12px 10px;justify-content:center;border-radius:11px}
 #categorias .category-card strong{font-size:15px;line-height:1.2}
 #categorias .category-card span{font-size:11px;line-height:1.35;margin-top:5px}
}

/* FP-01D.5A R2 — cantidad editable exclusivamente en carrito */
.pmx-cantidad-control .pmx-cantidad-input{width:62px;min-width:48px;height:36px;border:0;text-align:center;font:700 15px Arial,sans-serif;color:var(--pmx-text);background:#fff}
.pmx-aviso-cantidad{padding:10px 14px;margin:0 0 12px;border:1px solid #e4a8a8;border-radius:7px;color:#a21d1d;background:#fff4f4;font-weight:700}

/* FP-01D.5A R3 — restaurar geometría del selector editable en carrito */
.pmx-item-controles .pmx-cantidad-control{display:inline-flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:0;width:154px;min-width:154px;height:38px;overflow:hidden;white-space:nowrap;border:1px solid #c9d7e4;border-radius:8px;background:#fff;box-sizing:border-box}
.pmx-item-controles .pmx-cantidad-control button{display:flex;flex:0 0 38px;align-items:center;justify-content:center;width:38px;min-width:38px;max-width:38px;height:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:0;background:#f1f6fb;color:#073c70;font-size:19px;line-height:1;box-sizing:border-box}
.pmx-item-controles .pmx-cantidad-control .pmx-cantidad-input{display:block;flex:1 1 76px;width:76px;min-width:0;max-width:none;height:36px;min-height:36px;margin:0;padding:0 3px;border:0;border-radius:0;outline-offset:-2px;text-align:center;font:700 15px Arial,sans-serif;color:#073c70;background:#fff;box-sizing:border-box;appearance:textfield;-moz-appearance:textfield}
.pmx-item-controles .pmx-cantidad-control .pmx-cantidad-input::-webkit-inner-spin-button,.pmx-item-controles .pmx-cantidad-control .pmx-cantidad-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* PROM-01 visual R1: icono de carrito, sin modificar precios */
.btn-cotizar-producto:not(:disabled){display:flex;align-items:center;justify-content:center;gap:9px}
.pmx-cart-icon{display:inline-block;vertical-align:middle;flex:none}

/* PROM-01 P2: vista previa visual aislada de Home; no altera precios */
.pmx-promo-preview{margin-top:12px;padding:9px 10px;border:1px solid #cde8d1;border-radius:9px;background:#f8fdf8;font-size:12px;color:#154b2a}
.pmx-promo-preview-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px}
.pmx-promo-preview-discount{display:inline-block;background:#d82424;color:#fff;font-size:16px;font-weight:800;padding:5px 8px;border-radius:6px}
.pmx-promo-preview-tag{font-weight:700;color:#815b00;background:#fff1b8;padding:4px 6px;border-radius:6px}
.pmx-promo-preview-old{color:#68737e;line-height:1.5}
.pmx-promo-preview-save{color:#18803a;font-weight:800;margin-top:4px}
.pmx-promo-preview-note{color:#54616b;font-size:10px;line-height:1.35;margin-top:6px}
