/* =========================================================
   CATÁLOGO - MASTER CUPS
   CSS responsive para desktop, tablet y móviles
   ========================================================= */

/* --- Base --- */
.catalogo-wrapper,
.catalogo-wrapper * {
    box-sizing: border-box;
}

.catalogo-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

.catalogo-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 5%;
}

/* =========================================================
   FILTROS
   ========================================================= */

.filtros {
    width: 260px;
    flex: 0 0 260px;
    position: sticky;
    top: 20px;
}

.filtro-seccion {
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filtro-seccion h3 {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111111;
    border-left: 4px solid #ffd700;
    padding-left: 12px;
    margin: 0 0 20px;
}

.categorias-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categorias-lista li {
    margin-bottom: 8px;
}

.categorias-lista li:last-child {
    margin-bottom: 0;
}

.categorias-lista li a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: #555555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.3;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
    background: #f9f9f9;
}

.categorias-lista li a:hover {
    background: #f0f0f0;
    color: #111111;
    transform: translateX(5px);
}

.categorias-lista li a.active {
    background: #111111;
    color: #ffd700;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   CONTENEDOR DE PRODUCTOS
   ========================================================= */

.grid-productos-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.grid-productos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* =========================================================
   TARJETA DE PRODUCTO
   ========================================================= */

.producto-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* --- Imagen --- */
.producto-img {
    width: 100%;
    height: 220px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.producto-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.03);
}

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

.producto-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
}

.producto-info h3 {
    font-size: 17px;
    line-height: 1.35;
    color: #111111;
    margin: 0 0 12px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}

.precio-container {
    margin-bottom: 15px;
}

.precio {
    color: #111111;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 4px;
}

.precio strong {
    color: #b8860b;
    font-size: 1.3rem;
    font-weight: 900;
}

.aclaracion {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666666;
    display: block;
}

/* =========================================================
   BOTÓN VER OPCIONES
   ========================================================= */

.btn-ver-mas {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #111111;
    color: #ffd700;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 5px;
    border: 1px solid #111111;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.btn-ver-mas:hover {
    background-color: #ffd700;
    color: #111111;
    border-color: #ffd700;
}

.btn-ver-mas:active {
    transform: scale(0.98);
}

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

.no-productos {
    grid-column: 1 / -1;
    width: 100%;
    padding: 50px 25px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    color: #666666;
    font-size: 1.1rem;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.paginacion-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.paginacion {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-pag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    background: #f1f1f1;
    color: #111111;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.btn-pag:hover {
    background: #ffd700;
    color: #111111;
}

.paginacion .current {
    padding: 0 10px;
    font-size: 14px;
    color: #444444;
    white-space: nowrap;
}


/* =========================================================
   TABLET GRANDE
   901px - 1200px
   ========================================================= */

@media (max-width: 1200px) {

    .catalogo-container {
        gap: 25px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .filtros {
        width: 230px;
        flex-basis: 230px;
    }

    .grid-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .producto-img {
        height: 210px;
    }
}


/* =========================================================
   TABLET
   601px - 900px
   ========================================================= */

@media (max-width: 900px) {

    .catalogo-container {
        flex-direction: column;
        gap: 25px;
        padding: 25px 4%;
    }

    .filtros {
        width: 100%;
        flex: none;
        position: static;
    }

    .filtro-seccion {
        padding: 18px;
    }

    .filtro-seccion h3 {
        margin-bottom: 15px;
    }

    .categorias-lista {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .categorias-lista li,
    .categorias-lista li:last-child {
        margin: 0;
        flex: 1 1 auto;
    }

    .categorias-lista li a {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 9px 12px;
        font-size: 14px;
    }

    .categorias-lista li a:hover {
        transform: none;
    }

    .grid-productos-wrapper {
        width: 100%;
        gap: 25px;
    }

    /*
       IMPORTANTE:
       Las tarjetas de tablet ya no ocupan todo el espacio
       disponible. Se mantienen en 2 columnas y se centran.
    */
    .grid-productos {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 340px));
        justify-content: center;
        gap: 22px;
    }

    .producto-img {
        height: 200px;
    }

    .producto-info {
        padding: 17px;
    }

    .producto-info h3 {
        font-size: 16px;
    }

    .precio strong {
        font-size: 1.2rem;
    }
}


/* =========================================================
   CELULAR GRANDE
   481px - 600px

   Todavía mostramos 2 cards, pero más compactas.
   ========================================================= */

@media (max-width: 600px) {

    .catalogo-container {
        gap: 20px;
        padding: 20px 15px;
    }

    .filtro-seccion {
        padding: 15px;
        border-radius: 10px;
    }

    .categorias-lista {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .categorias-lista li {
        flex: 0 0 auto;
    }

    .categorias-lista li a {
        white-space: nowrap;
        padding: 9px 14px;
        font-size: 13px;
    }

    /*
       Dos columnas compactas y centradas.
       No dejamos que las cards se estiren demasiado.
    */
    .grid-productos {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 280px));
        justify-content: center;
        gap: 15px;
    }

    .producto-img {
        height: 180px;
        padding: 14px;
    }

    .producto-info {
        padding: 14px 11px;
    }

    .producto-info h3 {
        font-size: 14px;
        min-height: 42px;
        margin-bottom: 9px;
    }

    .precio {
        font-size: 0.92rem;
    }

    .precio strong {
        font-size: 1.05rem;
    }

    .aclaracion {
        font-size: 0.67rem;
    }

    .btn-ver-mas {
        padding: 10px 7px;
        font-size: 12px;
    }

    .paginacion {
        width: 100%;
        padding: 10px;
        gap: 6px;
    }

    .btn-pag {
        min-height: 34px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .paginacion .current {
        padding: 0 5px;
        font-size: 12px;
    }
}


/* =========================================================
   CELULAR
   Hasta 480px

   Una sola card, pero centrada y con ancho controlado.
   ========================================================= */

@media (max-width: 480px) {

    .catalogo-container {
        padding: 15px 12px 25px;
    }

    .filtro-seccion h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /*
       Una sola columna.
       La card NO ocupa obligatoriamente todo el ancho.
    */
    .grid-productos {
        width: 100%;
        grid-template-columns: minmax(0, 360px);
        justify-content: center;
        gap: 18px;
    }

    .producto-card {
        width: 100%;
        border-radius: 10px;
    }

    .producto-img {
        height: 220px;
        padding: 20px;
    }

    .producto-info {
        padding: 18px 16px;
    }

    .producto-info h3 {
        font-size: 17px;
        min-height: auto;
        margin-bottom: 12px;
    }

    .precio {
        font-size: 1rem;
    }

    .precio strong {
        font-size: 1.2rem;
    }

    .aclaracion {
        font-size: 0.72rem;
    }

    .btn-ver-mas {
        padding: 13px 10px;
        font-size: 13px;
    }

    .no-productos {
        padding: 40px 20px;
        font-size: 1rem;
    }

    .paginacion-container {
        margin-top: 0;
    }

    .paginacion {
        gap: 5px;
    }

    .paginacion .current {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 3px;
    }
}


/* =========================================================
   PANTALLAS MUY PEQUEÑAS
   Hasta 360px
   ========================================================= */

@media (max-width: 360px) {

    .catalogo-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .grid-productos {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
    }

    .producto-img {
        height: 210px;
    }

    .producto-info {
        padding: 15px 12px;
    }

    .producto-info h3 {
        font-size: 16px;
    }

    .precio strong {
        font-size: 1.1rem;
    }

    .btn-pag {
        padding: 6px 8px;
        font-size: 11px;
    }
}


/* =========================================================
   ACCESIBILIDAD / TOUCH
   ========================================================= */

@media (hover: none) {

    .producto-card:hover {
        transform: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .producto-card:hover .producto-img img {
        transform: none;
    }

    .categorias-lista li a:hover {
        transform: none;
    }
}


@media (prefers-reduced-motion: reduce) {

    .producto-card,
    .producto-img img,
    .btn-ver-mas,
    .categorias-lista li a,
    .btn-pag {
        transition: none;
    }
}

/* =========================================================
   INFORMACIÓN DE MEDIOS DE PAGO
   ========================================================= */

.medios-pago {
    margin-top: 14px;
}


/* ---------------------------------------------------------
   TÍTULO
   --------------------------------------------------------- */

.medios-pago-label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.68rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    color: #999;
}


/* ---------------------------------------------------------
   OPCIONES
   --------------------------------------------------------- */

.medios-pago-opciones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    font-size: 0.78rem;
    line-height: 1.4;

    color: #444;
}


/* ---------------------------------------------------------
   MEDIO DE PAGO
   --------------------------------------------------------- */

.pago-item {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.pago-icono {
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   SEPARADOR
   --------------------------------------------------------- */

.pago-separador {
    color: #c5c5c5;
    font-size: 0.75rem;
}


/* ---------------------------------------------------------
   TRANSFERENCIA
   --------------------------------------------------------- */

.pago-item.transferencia {
    font-weight: 600;
    color: #333;
}


/* ---------------------------------------------------------
   BADGE DESCUENTO
   --------------------------------------------------------- */

.descuento-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 7px;

    border-radius: 4px;

    background: #e8f6ee;
    color: #16834b;

    font-size: 0.65rem;
    font-weight: 800;

    letter-spacing: 0.2px;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   ACLARACIÓN
   --------------------------------------------------------- */

.precio-container .aclaracion {
    display: block;

    margin-top: 7px;

    font-size: 0.67rem;
    line-height: 1.35;

    color: #999;
}


/* =========================================================
   HOVER
   ========================================================= */

.producto-card:hover .descuento-badge {
    background: #16834b;
    color: #fff;
}


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

@media (max-width: 768px) {

    .medios-pago {
        margin-top: 12px;
    }

    .medios-pago-label {
        font-size: 0.64rem;
        margin-bottom: 6px;
    }

    .medios-pago-opciones {
        font-size: 0.72rem;
        gap: 5px;
    }

    .pago-icono {
        font-size: 0.76rem;
    }

    .descuento-badge {
        padding: 3px 6px;
        font-size: 0.60rem;
    }

    .precio-container .aclaracion {
        font-size: 0.62rem;
    }
}

.aviso-entrega {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 20px 0;
    padding: 15px 18px;
    background: #fff8e1;
    border: 1px solid #f0d98c;
    border-radius: 10px;
    box-sizing: border-box;
}

.aviso-entrega-icono {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5c400;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
}

.aviso-entrega-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.45;
}

.aviso-entrega-texto > strong {
    color: #222;
    font-size: 15px;
}

.aviso-entrega-texto span strong {
    color: #222;
}

@media (max-width: 576px) {
    .aviso-entrega {
        gap: 11px;
        padding: 13px 14px;
    }

    .aviso-entrega-icono {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .aviso-entrega-texto {
        font-size: 13px;
    }

    .aviso-entrega-texto > strong {
        font-size: 14px;
    }
}