.venta-container {
    width: 95%;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.lista_venta {
    width: 99%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
}

.pos-table thead {
    background: #2c3e50;
    color: #fff;
}

.pos-table th {
    padding: 12px;
    font-size: 0.85em;
    text-transform: uppercase;
}

.pos-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}
#total_venta {
    width: 20%;
}
/* Estilo de la fila de oferta */
.row-oferta td {
    background: rgba(46, 204, 113, 0.15); /* Verde suave en lugar de rojo agresivo */
    color: #27ae60;
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
    padding: 4px;
}
.vista_lineal{
    display: flex;
    padding-top: 0;
}
@media screen and (max-width: 480px) {
    .vista_lineal{
        display: block;
        padding-top: 0;
    }
    #total_venta {
        width: 95%;
    }
}
/* Control de Cantidad */
.qty-control {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    max-width: 120px;
}

.qty-control input {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
}

.btn-update {
    background: #3498db;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.btn-update img {
    height: 1.5em;
    filter: brightness(0) invert(1);
}

/* Panel de Total */
.lista_venta_total {
    width: 100%;
    background: var(--main);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.grand-total {
    font-size: 1.8em;
    font-weight: 900;
    color: #2ecc71;
    margin-top: 10px;
}

.btn-delete {
    background: #cf0000;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete:hover { background: #d41500; }

/* Mobile */
@media screen and (max-width: 980px) {
    .venta-container { flex-direction: column; }
    .lista_venta, .lista_venta_total { width: 100%; }
}

/* Contenedor de Búsqueda */
.search-container {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#buscarkey {
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 15px 10px 45px;
    transition: all 0.3s;
    outline: none;
}

#buscarkey:focus {
    border-color: var(--main);
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    color: #999;
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px;
}

.search-header {
    grid-column: 1 / -1;
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    padding: 5px 0;
    border-bottom: 2px solid var(--main);
}

/* Tarjeta de Producto */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative; /* Padre relativo */
    overflow: hidden;
}

.p-name {
    position: absolute; /* Hijo absoluto */
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #fff; /* Texto blanco para resaltar */
    line-height: 1.2;
    z-index: 2;
    
    /* Gradiente oscuro para que el texto siempre sea legible */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    
    /* Limitar a 2 líneas de texto */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto; /* Ajuste automático según el texto */
}

/* Ajuste del badge para que no estorbe al nombre */
.badge-promo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 3;
}

/* Reducimos el padding superior de la info ya que el nombre ya no está ahí */
.product-info {
    padding: 5px 8px 8px 8px;
    flex-grow: 1;
}

.p-provider {
    font-size: 10px;
    color: #888;
    margin: 5px 0;
}

.p-price {
    background: var(--main);
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1em;
    padding: 5px;
    margin-top: 5px;
}

/* Responsivo */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
#footerfijo {
    position: fixed;
    bottom: 0; /* Lo separamos un poco del borde inferior para que "flote" */
    left: 50%;
    transform: translateX(-50%); /* Truco para centrar un elemento fijo */
    
    width: auto; /* El ancho se adapta a los iconos */
    max-width: 90%; /* Evita que choque con los bordes en móviles */
    height: 4.5em;
    
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Bordes redondeados */
    border-radius: 50px; /* Esto crea la forma de cápsula u orilla redondeada */
    
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra más marcada para el efecto flotante */
    padding: 0 1.5em; /* Espacio extra en las orillas redondeadas */
    overflow: hidden; /* Asegura que el color de hover no se salga de las curvas */
}

#footerfijo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px; /* Espacio entre los iconos */
    text-decoration: none;
    transition: background 0.3s ease;
}

#footerfijo img {
    width: auto;
    height: 2.8em; /* Tamaño un poco más discreto y elegante */
    object-fit: contain;
    transition: transform 0.2s ease;
}

#footerfijo a:hover {
    background: var(--buttonhover);
}

/* Media Queries para mantener la elegancia en móvil */
@media screen and (max-width: 480px) {
    #footerfijo {
        height: 3.8em;
        bottom: 10px;
        padding: 0 1em;
    }
    #footerfijo img {
        height: 2.2em;
    }
}
.vista_productos_inicio{
    padding-top:0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.alert-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.alert-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-box button {
    margin: 10px;
    padding: 10px 20px;
}
#titulos_secundarios{
    height: auto;
    padding: 0;
    padding-top: .15em;
    width: 98%;
    margin-bottom: .5em;
    border-bottom: 5px solid var(--main);
    color: var(--main);
    font-weight: bold;
    font-size:x-large;
}
.vl {
    border-left: 1px solid var(--gray);
    height: 50px;
}
.vlW {
    border-left: 2px solid var(--white);
    height: 50px;
}
.btn_sub_menu{
    background-color: var(--green);
    padding-right: 1em;
    display:flex; 
    border-radius: .25em;
    border: 1px solid var(--green-gray);
    margin: .5em 0 .5em 0;
    justify-content: left;
}
.btn_sub_menu b{
    color: #FFFFFF;
    font-weight: bold;
    font-size: 18px;
    margin: .5em 1em 0 .5em;
    width: 70%;
}
.btn_sub_menu img{
    height: 2em;
    margin: .5em 0 .5em 1em;
}
.btn_sub_menu:hover {
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}
.contenedor {
	width: 90%;
	max-width: 1000px;
	margin: 80px auto;
}

.hero .titulo {
	font-weight: 800;
	font-size: 100px;
	margin-bottom: 40px;
}

.hero .contenedor-botones {
	display: flex;
	gap: 20px;
}

.btn {
	padding: 10px 20px;
	font-size: 20px;
	background: #000;
	border: none;
	cursor: pointer;
	color: #fff;
	border-radius: 5px;
	transition: 0.3s ease all;
}

.btn.exito {
	background: var(--exito);
}
.btn.error {
	background: var(--error);
}
.btn.info {
	background: var(--info);
}
.btn.warning {
	background: var(--warning);
}

/* Hover */
.btn.exito:hover {
	background: var(--exito-hover);
}
.btn.error:hover {
	background: var(--error-hover);
}
.btn.info:hover {
	background: var(--info-hover);
}
.btn.warning:hover {
	background: var(--warning-hover);
}

/* Toast */
.contenedor-toast {
	position: fixed;
	right: 40px;
	bottom: 40px;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column-reverse;
	gap: 20px;
}

.toast {
	background: #ccc;
	display: flex;
	justify-content: space-between;
	border-radius: 10px;
	overflow: hidden;
	animation-name: apertura;
	animation-duration: 200ms;
	animation-timing-function: ease-out;
	position: relative;
}

.toast.exito {
	background: var(--exito);
}
.toast.error {
	background: var(--error);
}
.toast.info {
	background: var(--info);
}
.toast.warning {
	background: var(--warning);
}

.toast .contenido {
	display: grid;
	grid-template-columns: 30px auto;
	align-items: center;
	gap: 15px;
	padding: 15px;
}

.toast .icono {
	color: rgba(0, 0, 0, 0.4);
}

.toast .titulo {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 5px;
}

.toast .btn-cerrar {
	background: rgba(0, 0, 0, 0.1);
	border: none;
	cursor: pointer;
	padding: 0px 5px;
	transition: 0.3s ease all;
}

.toast .btn-cerrar:hover {
	background: rgba(0, 0, 0, 0.3);
}

.toast .btn-cerrar .icono {
	width: 20px;
	height: 20px;
	color: #fff;
}

@keyframes apertura {
	from {
		transform: translateY(100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.toast.cerrando {
	animation-name: cierre;
	animation-duration: 200ms;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

@keyframes cierre {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(100% + 40px));
	}
}

.toast.autoCierre::after {
	content: '';
	width: 100%;
	height: 4px;
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
	bottom: 0;
	animation-name: autoCierre;
	animation-duration: 5s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

@keyframes autoCierre {
	from {
		width: 100%;
	}
	to {
		width: 0%;
	}
}
#otrotipogasto{
    display: none;
}
.innerdos{
    height: 100%;
}
.botonperfil{
    border-radius: 2em; 
    margin-bottom: -1em;
    -webkit-box-shadow: 6px 6px 14px -5px rgba(0,0,0,0.75);
    -moz-box-shadow: 6px 6px 14px -5px rgba(0,0,0,0.75);
    box-shadow: 6px 6px 14px -5px rgba(0,0,0,0.75);
}
.botonperfil img{
    width: 2.5em; 
    height: 2.5em;
}
.botonperfil:hover .submenuperfil{
    display:none;
    position:fixed;
}
.submenuperfil{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000000; /* Sit on top */
    left: 75%;
    top: 3em;
    padding: 1em;
    width: 300px;
    height: 70%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(255,255,255); /* Fallback color */
    background-color: rgba(255,255,255,0.9); /* Black w/ opacity */
    border-width: 2px;
    border-style: solid solid solid solid;
    border-color: rgba(0,0,0,0.2);
    border-radius: 0 0 20px 20px;
}
#mostrarsaldo {
    padding: 0 0 4em 0;
    background: linear-gradient(270deg, var(--main), var(--bordermain));
    margin: auto;
    text-align: center;
    color: #c8e7f0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #f00;
}@media only screen and (max-width: 600px) {
    .submenuperfil{
        margin-left: -69%;
    }
}
.fotoprincipal{
    width: 50%;
}.mensajeok{
    position:fixed;
    width:20em;
    height:43px;
    line-height: 49px;
    bottom:84%;
    right:39%;
    background:#0400ff;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:15px;
    box-shadow: 0px 1px 10px rgba(0,0,0,.5);
    z-index:100;
    transition: all 300ms ease;
    -webkit-box-shadow: 4px 6px 14px -8px rgba(0,0,0,0.75);
    -moz-box-shadow: 4px 6px 14px -8px rgba(0,0,0,0.75);
    box-shadow: 4px 6px 14px -8px rgba(0,0,0,0.75);
    border-radius: .5em;
}
input[type="file"] {
    display: none;
}
.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    margin-top:.4em;
    padding: .6em 2em;
    cursor: pointer;
}
.btn-wsp:hover{
    background: #FD8E18;
}
.input-wrapper {
    position: relative;
    width: 20em; 
}
.input-icon {
    color: #191919;
    position: absolute;
    width: 20px;
    height: 20px;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.loader-page {
    position: fixed;
    z-index: 25000;
    background: rgb(255, 255, 255);
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:all .3s ease;
}
.loader-page::before {
    content: "";
    position: absolute;
    border: 2px solid rgb(255, 66, 26);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-sizing: border-box;
    border-left: 2px solid rgba(255, 66, 26,0);
    border-top: 2px solid rgba(255, 66, 26,0);
    animation: rotarload 1s linear infinite;
    transform: rotate(0deg);
}
@keyframes rotarload {
    0%   {transform: rotate(0deg)}
    100% {transform: rotate(360deg)}
}
.loader-page::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 66, 26,.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-sizing: border-box;
    border-left: 2px solid rgba(255, 66, 26, 0);
    border-top: 2px solid rgba(255, 66, 26, 0);
    animation: rotarload 1s ease-out infinite;
    transform: rotate(0deg);
}
#mostrarmenu{
    display:none;
}
#mostrarbusqueda{
    display:none;
}
.scroll {
    width:23em; height:35em; overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.menusec{
    overflow-y: scroll; 
    background:#fff;
}
.vistap{
    background:#fff; 
    margin-left:2px;
}
.scroll::-webkit-scrollbar {
    display: none;
}
.barra{
    background:var(--bordermain); 
    height:2em; 
    padding:0; 
    float:left; 
    width:97%; 
    margin-bottom:.5em;
    border-radius: 0.5em;
    -webkit-box-shadow: 6px 4px 15px -4px rgb(0 0 0 / 75%);
    -moz-box-shadow: 6px 4px 15px -4px rgba(0,0,0,0.75);
    box-shadow: 6px 4px 15px -4px rgb(0 0 0 / 75%);
}
.buscadorizquierdo{
    display:none;
}
#descripcion{
    display: none;
}
#nombreproducto{
    width:100%;
}
#nombreproductoprincipal{
    width:100%;
}
#producto{
    text-align: center; 
    height: 23em; 
    float:center;
    padding-bottom:2em;
    margin: 3px;
}
#producto:hover  #descripcion{
    display: block;
}
#producto:hover{
    background-color: rgba(243, 243, 243, 0.507);
}
.tipopagos
{
    width: 99%;
    height: 10em;
    margin: 3em 0 3em 0;
    padding-top:1em;
    border-radius: .5em;
    -webkit-box-shadow: 4px 3px 17px -3px rgba(0,0,0,0.75);
    -moz-box-shadow: 4px 3px 17px -3px rgba(0,0,0,0.75);
    box-shadow: 4px 3px 17px -3px rgba(0,0,0,0.75);
    background-color: #ffffff;
    overflow-x: hidden;
}
.bannerprincipal{
    display: flex;
}
.bannerprincipalchico{
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.cajabanner{
    float:center; 
    height:auto; 
    margin: 1em 0 1em 0; 
    border-right: 1px solid #E8E8E8;
}
@media screen and (max-width: 1680px) {
    .vista_productos_inicio{
        height: 42em;
    }
    .tiendaenproducto{
        color:blue; 
        position:absolute;
        font-size: .7em;
    }
    #nombreproducto{
        display: flex;
    }
    #nombreproductoprincipal{
        display: none;
    }#calificacionyprecio{
        display: none;
    }
    .bannerprincipal{
        margin-top:5em;
    }
    #mostrarsaldo{
        display: none;
    }
    .solocuadro{
        height: 22.5em; 
        padding:2em; 
        float:center; 
        width:22em;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:15em;
    }
    .cajavistaproducto{
        padding-top:0; 
        width:42em;
    }
    .vistalistaventa{
        padding-top:0; 
        width:21em;
    }
    #producto{
        width: 16em;
    }
    .menusec{
        width: 22em;
        height: 45em;
    }
    .vistap{
        width: 74%;
        height: 45em;
    }
    .cuart{
        width: 31%;
    }
}
@media screen and (max-width: 1440px) {
    .bannerprincipal{
        margin-top:1em;
    }
    #mostrarsaldo{
        display: none;
    }
    .solocuadro{
        height: 19.5em; 
        padding:2em; 
        float:center; 
        width:19.5em;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:19.5em;
    }
    .cajavistaproducto{
        padding-top:0; 
        width:35em;
    }
    #producto{
        width: 13em;
    }
    .menusec{
        width: 20em;
        height: 42em;
    }
    .vistap{
        width: 74%;
        height: 42em;
    }
}
@media screen and (max-width: 1380px) {
    #mostrarsaldo{
        display: none;
    }
    .solocuadro{
        height: 15em; 
        padding:2em; 
        float:center; 
        width:10em;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:19em;
    }
    .cajavistaproducto{
        padding-top:0; 
        width:28em;
    }
    #producto{
        width: 18.68em; 
    }
    .menusec{
        width: 18em;
        height: 33em;
    }
    .vistap{
        width: 73%;
        height: 33em;
    }
    .vista_productos_inicio{
        height: 33em;
    }
}
@media screen and (max-width: 1280px) {
    #mostrarsaldo{
        display: none;
    }
    .solocuadro{
        height: 20em; 
        padding:2em; 
        float:center; 
        width:20em;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:18em;
    }
    .cajavistaproducto{
        padding-top:0; 
        width:20em;
    }
    #producto{
        width: 16em; 
    }
    .menusec{
        width: 19em;
        height: 38em;
    }
    .vistap{
        width: 70%;
        height: 38em;
    }
    .vista_productos_inicio{
        height: 38em;
    }
}
@media screen and (max-width: 1120px) {
    #mostrarsaldo{
        display: none;
    }
    .solocuadro{
        height: 28em; 
        padding:2em; 
        float:center; 
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:100%;
    }
    .cajavistaproducto{
        padding-top:0; 
        width:20em;
    }
    #producto{
        width: 16em; 
    }
    .menusec{
        width: 18em;
    }
    .vistap{
        width: 68%;
    }
}
@media screen and (max-width: 980px) {

    .tiendaenproducto{
        color:blue; 
        position:absolute;
        text-decoration: none;
    }
    #nombreproductoprincipal{ 
        display: flex;
    }
    #mostrarsaldo{
        display: block;
        position: fixed;
    }
    .solocuadro{
        height: 25em; 
        padding:2em; 
        float:center; 
        width: 45%;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
    }
    #producto{
        width: 35em;
    }
    .buscadorizquierdo{
        display:block;
    }
    .barra{
        width:104%;
    }
    #mostrarmenu{
        display:block;
    }
    #mostrarbusqueda{
        display: inline-block;
        width:100%;
        margin-top: -2em;
    }
    #menuizq{
        display:none;
    }
    .menusec {
        width:30%;
    }
    .vistap{
        width:65%; 
    }
}
@media screen and (max-width: 736px) {
    #mostrarsaldo{
        display: block;
        position: fixed;
    }
    .bannerprincipal{
        display: flex;
    }
    #producto{
        width: 38.5em;
    }
    .buscadorizquierdo{
        display:block;
    }
    .barra{
        width:106%;
    }
    #mostrarmenu{
        display:block;
    }
    #mostrarbusqueda{
        display: inline-block;
        width:100%;
        margin-top: -2em;
    }
    #menuizq{
        display:none;
    }
    .innerdos{
        margin-left:.7em;
    }
    .menusec {
        width:100%;
        height: auto;
    }
    .vistap{
        width:100%;
        margin-top:.2em; 
    }
    .vista_productos_inicio{
        margin-top: .2em;
    }
    .cuart{
        width: 14em;
    }
    .imgcategoria{
        width: 4em; 
        height: 4em; 
        overflow: hidden;
    }
    .button{
        margin: 0;
        padding: 0;
        margin-top: -2em;
        padding-left: 3px;
        padding-right: 3px;
        height: 3em;
    }
    .tipopagos{
        height: 7.5em;
        margin-bottom: -0.5em;
    }
}
@media screen and (max-width: 600px){
    .cajaresponsiva{
        width: auto;
    }
    #mostrarsaldo{
        display: block;
        position: fixed;
    }
    .bannerprincipal{
        display: none;
    }
    .bannerprincipalchico{
        display: flex;
    }
    #descripcion{
        display: block;
    }s
    .mySlides img{
        height: 9em;
    }
    .tipopagos{
        width: 100%;
        margin-top: -1em;
        font-size: 12px;
        padding: 0.5em
    }
    .tipopagos h3
    {
          font-size: .7em;
    }.tipopagos a
    {
          font-size: .7em;
    }
    .cuart{
        width: 34%;
    }
}
@media screen and (max-width: 495px) {
    .submenuperfil{
        top: 10em;
        width: 400px;
    }
    #sizechico{
        font-size: .7em;
    }
    #nombreproductoprincipal h3{
        font-size: 1em;
    }
    .cajaresponsiva{
        width: auto;
    }
    #mostrarsaldo{
        display: block;
        position: fixed;
    }
    .solocuadro{
        height: 20em; 
        padding:2em; 
        float:center; 
        width:100%;
    }
    .solomayor{
        height: 100%; 
        padding:2em; 
        float:center; 
        width:100%;
    }
    .bannerprincipal{
        display: none;
    }
    .bannerprincipalchico{
        display: flex;
    }
    .fotoprincipal{
        width: 100%;
    }
    #producto{
        height: 21em;
        width: 13em;
    }
    .buscadorizquierdo{
        display:block;
    }
    .barra{
        width:106%;
    }
    #mostrarmenu{
        display:block;
    }
    #mostrarbusqueda{
        display: inline-block;
        width:100%;
        margin-top: -2em;
    }
    #menuizq{
        display:none;
    }
    .innerdos{
        margin-left:.7em;
    }
    .cuart{
        width: 33%;
    }
}
@media screen and (max-height: 480px) {
    .menusec{
        height: 20em;
    }
    .vistap{
        height: 20em;
    }
    .vista_productos_inicio{
        height: 20em;
        padding-top:.1em;
    }
}

    /* The Modal (background) */
    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 10000000; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    }
    
    /* Modal Content/Box */
    .modal-content {
        background-color: #fefefe;
        margin: 1% auto; /* 15% from the top and centered */
        padding: 20px;
        border: 1px solid #888;
        width: 80%; /* Could be more or less, depending on screen size */
    }
    
    /* The Close Button */
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }
    
    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

        /* The img Modal (background) */
.imgmodal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.imgmodal-content {
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.imgclose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.imgclose:hover,
.imgclose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* The Close Button */
.closeinformacion {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeinformacion:hover,
.closeinformacion:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}