.cabecera {
    background: #fdf3d9;
/*    background: white;*/    
    color: black; 
    padding: 10px 10px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    box-sizing: border-box;
}


.h3prod {
        font-family: 'Helvetica', sans-serif;
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1rem;
        color: #fdba55;
        background-color: black;
        border: 2px solid #2e518b;
        border-radius: 15px;
        text-align: center;
        box-sizing: border-box;
        width: auto;
        min-width: 250px;
        padding: 0.7rem 16px;
        margin: 0;
        flex: 0 0 auto;
}

.h3prod1 {
    /*    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;*/
    text-align: center;
    border: 2px solid #2e518b;
    color: #fdba55;
    background-color: black;
    font-family: 'Helvetica', sans-serif;
    border-radius: 15px;
    padding: 5px 5px;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 2rem;
    font-weight: bold;
    width: auto;
    min-width: 250px;
    margin: 0;
    flex: 0 0 auto;
}


    .cmbcolor{
        width: 99%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.8rem;
        font-weight: bold;

        
    }



.imgusuario {
    display: block;
    border: 0;
    width: 40px;
    height: 40px;
    text-align: right;
    cursor: pointer;
    padding: 15px;
}
.cuerpo {
    padding-top: 7.5rem;
    background-color: #8ee2e2;
/*    background: url("/imagenes/lienso.jpg?v19");*/
	background-repeat: no-repeat;
	background-size: 100% 100%;
    
}

.divcatalogo {
    width: 100%;
    background-color: #8ee2e2;
/*    background: url("/imagenes/lienso.jpg?v19");*/
	background-repeat: no-repeat;
	background-size: 100% 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
/*    padding: 0px,8px ; */
    box-sizing: border-box;
}

.divprod {
    padding: 10px 5px;
    height: auto;
    width: 230px;
    margin: 1px;
    background-color: #E6EFFF; /* interior */
    border: 4px solid #221dbf; /* borde */
    box-shadow: 3px 3px #747682; /* sobra */
    text-align: center;
    line-height: 0.8em;
    border-radius: 15px;
}



.divprodofer {
    padding: 10px 5px;
    height: auto;
    width: 230px;
    margin: 1px;
    background-color: #fbf4cf; /*#F6F9AB;  interior amarillo */
    border: 4px solid #c9605d; /* borde */
    box-shadow: 3px 3px #b42512; /* sobra */
    text-align: center;
    line-height: 0.8em;
    border-radius: 20px;
}



.divprodnuevos {
    padding: 10px 5px;
    height: auto;
    width: 230px;
    margin: 1px;
    /*background-color: #F3CBB3;   interior rojo */ 
    /*background-color: #F6F9AB ; /* interior amarillo */
    background-color: #cff8d2 ; /* interior verde */

    border: 4px solid #207b23; /* borde */
    box-shadow: 3px 3px #b42512; /* sobra */
    text-align: center;
    line-height: 0.8em;
    border-radius: 20px;
}

/* Código + stock + Oferta/Nuevo: una sola línea (evita que la etiqueta caiga abajo) */
.prod-fila-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 4px;
}

.prod-fila-meta .fcod {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.25;
}

.prod-fila-meta .fofer,
.prod-fila-meta .fnuevo {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 1px 8px;
    line-height: 1.25;
}


    .fcod {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.8rem;
        color: blue;
        font-weight: bold;
        line-height: 1.3em;
        border-radius: 50px;
        border: 2px solid #9e1d0a;
        background-color: #dadac4;
        padding: 2px;
    }

    .fnuevo {
        text-shadow: 2px 1px 16px #e38124;
        color: green;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1em;
        font-weight:bold;
        line-height: 1.3em;
        padding: 1px 20px;
/*        animation: parpadeo 1.5s ease-in-out infinite;*/
/*        animation: neonefecto1 1s infinite; */
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    }

    .fnuevo1{
        text-shadow: 2px 1px 16px #e38124;
        color: green;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.8em;
        font-weight:bold;
        line-height: 1.3em;
        padding: 1px 20px;
        animation: parpadeo 1.5s ease-in-out infinite;
    }


    .fofer {
        text-shadow: 2px 1px 16px #e38124;
        color: red;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1em;
        font-weight:bold;
        line-height: 1.3em;
        padding: 1px 20px;
        /*animation: parpadeo 1.5s ease-in-out infinite;*/
        /*animation: neonefecto 1s infinite;    */
        text-shadow: 0 0 10px #d799da, 0 0 20px #d997db, 0 0 30px #f87171;
       
    }


    .fofer1 {
        text-shadow: 2px 1px 16px #e38124;
        color: red;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.8em;
        font-weight:bold;
        line-height: 1.3em;
        padding: 1px 20px;
        animation: parpadeo 1.5s ease-in-out infinite;
    }


        @keyframes parpadeo {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }


    @keyframes neonefecto {
      0% {
          text-shadow: 0 0 10px #c919ce, 0 0 20px #c919ce, 0 0 30px #f87171;
        }
    }

    @keyframes neonefecto1 {
      0% {
          text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
        }
    }


    .imgcat {
        width: 230px;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: contain;
        display: block;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        background: #fff;
        cursor: pointer;
    }
    
    .agregarcant {
                font-size: 0.8rem;
                font-family: verdana, arial;
                width: 110px;
                height: 25px;
                padding: 1px;
                color: #031e03;
                border: 2px solid #9e1d0a;
                background-color: #dadac4;
                border-radius: 50px;
                text-align: center;
    }
    .btnagregar{
        font-size: 0.8rem;
        border: 2px solid #9e1d0a;
        padding: 1px;
        width: 75px;
        height: 25px;
        cursor:pointer;
        background-color: #e1a708;
        color: #100f0f;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        border-radius: 50px;
    }
    .fimpo {
        text-shadow: 2px 1px 16px #e38124;
        color: #0C3B9F ;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.2em;
        font-weight:bold;
        line-height: 1.3em;
    }
    .fimpoofer {
        text-shadow: 2px 1px 16px #e38124;
        color: blue;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.5em;
        font-weight:bold;
        line-height: 1.3em;
    }

	.fimponuevo {
	    text-shadow: 2px 1px 16px #e38124;
	    color: green;
	    font-family: Arial, Helvetica, sans-serif;
	    font-size: 1.5em;
	    font-weight: bold;
	    line-height: 1.3em;
	}



    .fimpodes {
        text-shadow: 2px 1px 16px #e38124;
        color: red;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.6em;
        font-weight:bold;
        line-height: 1.3em;
    }

    .fsinstk {
        text-shadow: 2px 1px 16px #e38124;
        color: red;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.2em;
        font-weight:bold;
        line-height: 1.3em;
    }
    .fdesc {
        text-shadow: 2px 1px 16px #e38124;
        color: red;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.8em;
        font-weight:bold;
        line-height: 1.3em;
    }
    .fimpoant {
        text-shadow: 2px 1px 16px #e38124;
        color: black;
        font-family: Arial, Helvetica, sans-serif;
        text-decoration:line-through;
        font-size: 0.8em;
        font-weight:bold;
        line-height: 1.3em;
    }
    .ffrac {
        font-family: Arial, sans-serif;
        font-weight:bold;
        color: blue;
        font-size: 0.7em;
        line-height: 1em;
    }
    .frub {
        font-family: Arial, sans-serif;
        color: #E8042A ;
        font-size: 1em;
        line-height: 1em;
    }
    .fdes {
        font-family:Verdana, Geneva, Tahoma, sans-serif;
        font-size: 0.9em;
        font-weight: bold;
        color: black;
        line-height: 1.2em;
        
    }

.p-cant{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 0em;
    font-weight: bold;
    color: black;    
}

.cantidad {
    text-align: center;
    justify-content: center;
    width: 100%;
    height: 35px;    
    top: 0;
    align-items: flex-start;    
    margin-top: 4px;    
    border-radius: 50px;
    background: #8ee2e2;    
    box-shadow: inset 0px 0px 7px  1px #FF1493, inset 0px 0px 7px 1px #0CFFF4; 
}

/* Carrito /cat/: cantidad de ítems (líneas del carrito) junto al ícono */
.menu-pedido-con-contador {
    position: relative;
}

.menu-pedido-con-contador .enlace-carrito-cat {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.carrito-badge-cantidad {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.85em;
    height: 1.85em;
    padding: 0 0.42em;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.92rem, 0.55vw + 0.8rem, 1.12rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.42);
    pointer-events: none;
}

.carrito-badge-cantidad[hidden] {
    display: none !important;
}

/* Anterior / Siguiente en catálogo (override formulario.css, solo /cat/) */
.catbot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0;
}

.btnnavegar {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 9rem;
    padding: 0.72rem 1.45rem;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1.2;
    color: #f8fafc;
    background: linear-gradient(165deg, #516fbe 0%, #3b5899 42%, #28406f 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.1),
        0 8px 22px rgba(30, 58, 107, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.btnnavegar:hover {
    filter: brightness(1.07);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.12),
        0 12px 30px rgba(30, 58, 107, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btnnavegar:active {
    transform: translateY(2px);
    filter: brightness(0.96);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.25),
        inset 0 2px 5px rgba(15, 23, 42, 0.18);
}

.btnnavegar:focus-visible {
    outline: 2px solid #fdba55;
    outline-offset: 3px;
}

/* Botón Buscar en catálogo (override formulario.css, solo /cat/) */
.btnbuscar {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    width: auto !important;
    min-width: 6.75rem !important;
    height: auto !important;
    margin: 11px 8px !important;
    padding: 0.55rem 1.15rem !important;
    line-height: 1.2 !important;
    color: #f0fdfa !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 12px !important;
    background: linear-gradient(165deg, #14b8a6 0%, #0d9488 40%, #0f766e 100%) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 8px 20px rgba(15, 118, 110, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease !important;
}

.btnbuscar:hover {
    filter: brightness(1.06) saturate(1.05) !important;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.1),
        0 12px 26px rgba(15, 118, 110, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

.btnbuscar:active {
    transform: translateY(2px) !important;
    filter: brightness(0.94) !important;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.2),
        inset 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

.btnbuscar:focus-visible {
    outline: 2px solid #fdba55 !important;
    outline-offset: 3px !important;
}


@media only screen and (max-width:1220px) {
.div-cabecera {
        justify-content: center;
    }

    .catbot {
        gap: 0.55rem;
        margin-top: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .btnnavegar {
        font-size: 0.7rem;
        min-width: 0;
        flex: 1 1 calc(50% - 0.35rem);
        max-width: calc(50% - 0.35rem);
        padding: 0.58rem 0.65rem;
        letter-spacing: 0.045em;
        border-radius: 10px;
    }

    .btnbuscar {
        font-size: 0.78rem !important;
        width: 35% !important;
        min-width: 0 !important;
        max-height: none !important;
        height: 44px !important;
        margin: 5px !important;
        padding: 0 !important;
        letter-spacing: 0.055em !important;
        border-radius: 11px !important;
    }

    .carrito-badge-cantidad {
        font-size: clamp(0.85rem, 1.1vw + 0.65rem, 1rem);
        top: -1px;
        right: -1px;
        min-width: 1.8em;
        height: 1.8em;
    }

    .cuerpo {
            padding-top: 11.8rem;
            background-color: #8ee2e2;
        }

    .divcatalogo {
            width: 100%;
            background-color: #8ee2e2;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 5px;  
            box-sizing: border-box;
        }
    
    .divprod {
            height: auto;
            width: 46%;
            margin: 3px;
            background-color: #E6EFFF;
            border: 2px solid #221dbf;  /* borde */
            box-shadow: 2px 2px #747682;    /* sobra */
            text-align: center;
            line-height: 0.8em;
            padding: 1rem 0rem;
            border-radius: 20px;
        }


    .divprodofer {
            height: auto;
            width: 46%;
            margin: 3px;
            background-color: #fbf4cf; /*#F6F9AB;  interior amarillo */
            border: 2px solid #c9605d;  /* borde */
            box-shadow: 2px 2px #b42512;    /* sobra */
            text-align: center;
            line-height: 0.8em;
            padding: 1rem 0rem;
            border-radius: 20px;
        }

    .divprodnuevos {
            height: auto;
            width: 46%;
            margin: 3px;
            background-color: #cff8d2 ; /* interior verde */
            border: 4px solid #207b23; /* borde */
            box-shadow: 2px 2px #b42512;    /* sobra */
            text-align: center;
            line-height: 0.8em;
            padding: 1rem 0rem;
            border-radius: 20px;
        }

    .prod-fila-meta {
        gap: 4px;
        margin-bottom: 3px;
    }

    .prod-fila-meta .fcod {
        font-size: clamp(0.62rem, 2.5vw, 0.78rem);
        line-height: 1.2;
    }

    .prod-fila-meta .fofer,
    .prod-fila-meta .fnuevo {
        font-size: clamp(0.68rem, 2.6vw, 0.85rem);
        padding: 1px 6px;
    }



    .fcod {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.8rem;
            color: blue;
            font-weight: bold;
            line-height: 0.5em;
            border-radius: 50px;
            border: 1px solid #9e1d0a;
            background-color: #dadac4;
            padding: 2px;
            }
    
    .fofer {
            text-shadow: 2px 1px 16px #e38124;
            color: red;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1em;
            font-weight:bold;
            padding: 0px 5px;
            text-shadow: 0 0 10px #d799da, 0 0 20px #d997db, 0 0 30px #f87171;
        }

    .fnuevo {
            text-shadow: 2px 1px 16px #e38124;
            color: green;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1em;
            font-weight:bold;
            padding: 0px 5px;
            text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
        }

    
    .imgcat {
            border: 0;
            width: 100%;
            max-width: 100%;
            aspect-ratio: 1 / 1;
            height: auto;
            padding: 5px 7px;
            box-sizing: border-box;
            object-fit: contain;
            display: block;
            margin: 0 auto;
            background: #fff;
            cursor: pointer;
        }
    
    .agregarcant {
            font-size: 0.8rem;
            font-family: verdana, arial;
            width: 65px;
            height: 25px;
            padding: 1px;
            font-size: 1rem;
            color: #031e03;
            border: 2px solid #9e1d0a;
            background-color: #dadac4;
            border-radius: 50px;
            text-align: center;
        }
        
    .btnagregar {
            font-size: 0.8rem;
             border: 2px solid #9e1d0a;
            padding: 1px;
            width: 65px;
            height: 25px;
            cursor: pointer;
            background-color: #e1a708;
            color: #100f0f;
            text-decoration: none;
            font-family: Arial, Helvetica, sans-serif;
            border-radius: 50px;
        }
    
    .fimpo {
            text-shadow: 2px 1px 16px #e38124;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1.2rem;
            color: #0C3B9F;
            font-weight: bold;
            line-height: 1.3em;
        }
    
    .fimpoofer {
            text-shadow: 2px 1px 16px #e38124;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1.5rem;
            color: blue;
            font-weight: bold;
            line-height: 1.3em;
        }

        .fimponuevo {
            text-shadow: 2px 1px 16px #e38124;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1.5rem;
            color: green;
            font-weight: bold;
            line-height: 1.3em;
        }
	
    .fimpoant {
            text-shadow: 2px 1px 16px #e38124;
            font-family: Arial, Helvetica, sans-serif;
            text-decoration:line-through;
            font-size: 0.7rem;
            color: black;
            font-weight: bold;
            line-height: 1.3em;
        }
    
    .fimpodes {
            text-shadow: 2px 1px 16px #e38124;
            color: red;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.7rem;
            font-weight:bold;
            line-height: 1.3em;
        }
        
    .fsinstk {
            text-shadow: 2px 1px 16px #e38124;
            color: red;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 1.2em;
            font-weight:bold;
            line-height: 1.3em;
        }
    
    .fdesc {
            text-shadow: 2px 1px 16px #e38124;
            color: red;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.7em;
            font-weight:bold;
            line-height: 1.3em;
        }
    
    .frub {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.7rem;
            color: #E8042A ;
            line-height: 1em;
            }
    
    .ffrac {
            font-family: Arial, sans-serif;
            font-weight:bold;
            color: blue;
            font-size: 0.7em;
            line-height: 1em;
        }
    
    .fdes {
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: 0.8rem;
            color:black;    
            line-height: 1em;
            font-weight: bold;
            }

    .p-cant {
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 0.8rem;
        line-height: 0em;
        color: black;    
        }
        
    .cantidad {
            text-align: center;
            width: 100%;
            top: 0;
            background: #8ee2e2;    
            border-radius: 50px;
            height: 21px;  
        }

        
        
        
    .imgusuario {
        display: block; 
        border: 0;
        width: 40px;
        height: 40px;
        text-align: right;
    }
    .h3prod{
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.6rem;
            text-align: center;
            border: 2px solid #2e518b;
            padding: 5px;
            color: #fdba55;
            background-color: black;
            border-radius: 50px;
            padding: 5px 5px;
            box-sizing: border-box;
            line-height: 1rem;
            font-weight: bold;
            width: 100%;
            margin: 0 6px;
            flex: 1 1 auto;
            min-width: 0;
    }
        .h3prod1 {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.6rem;
            text-align: center;
            border: 2px solid #2e518b;
            padding: 5px;
            color: #fdba55;
            background-color: black;
            border-radius: 50px;
            padding: 5px 5px;
            box-sizing: border-box;
            line-height: 1rem;
            font-weight: bold;
            width: 100%;
            margin: 0 6px;
            flex: 1 1 auto;
            min-width: 0;
        }
    .cmbcolor{
        width: 99%;
    }


}


/* Modal imagen grande (catálogo) — estilo refinado */
.modal-producto {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-producto-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.78) 0%, rgba(30, 64, 175, 0.42) 55%, rgba(17, 24, 39, 0.82) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-producto-box {
    position: relative;
    z-index: 2;
    width: min(92vw, 560px);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
    border-radius: 18px;
    padding: 1.35rem 1.35rem 1.6rem;
    text-align: center;
    border: 1px solid rgba(88, 120, 202, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45) inset,
        0 28px 55px -15px rgba(15, 23, 42, 0.55),
        0 10px 25px -8px rgba(12, 59, 159, 0.25);
}

.modal-producto-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #fdba55 0%, #5878ca 45%, #0c3b9f 100%);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(88, 120, 202, 0.18);
    color: #1e3a5f;
}

.modal-close:active {
    transform: scale(0.94);
}

.modal-etiquetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 2.25rem 0;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-badge[hidden] {
    display: none !important;
}

.modal-badge--oferta {
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 45%, #7f1d1d 100%);
    border-color: rgba(254, 202, 202, 0.45);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.modal-badge--nuevo {
    color: #0f3d26;
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 42%, #16a34a 100%);
    border-color: rgba(22, 163, 74, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.modal-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin-top: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.12),
        0 1px 3px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.modal-desc {
    margin: 1rem 0.25rem 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.38;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.modal-precio {
    margin: 0.35rem 0 0;
    padding: 0.45rem 1rem;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0c3b9f;
    background: linear-gradient(180deg, rgba(228, 236, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(12, 59, 159, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(12, 59, 159, 0.12);
    letter-spacing: 0.02em;
}

@media only screen and (max-width: 1220px) {
    .modal-producto-box {
        width: min(94vw, 420px);
        padding: 1.1rem 1rem 1.35rem;
        border-radius: 16px;
    }
    .modal-producto-box::before {
        left: 1.1rem;
        right: 1.1rem;
    }
    .modal-desc {
        font-size: 0.98rem;
    }
    .modal-precio {
        font-size: 1rem;
        padding: 0.4rem 0.85rem;
    }
    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
    }

    .modal-etiquetas {
        margin-left: 1rem;
        margin-right: 1rem;
        gap: 0.45rem;
    }

    .modal-badge {
        font-size: 0.62rem;
        padding: 0.28rem 0.72rem;
        letter-spacing: 0.1em;
    }
}
