/* ===========================
   ESTRUCTURA GENERAL
=========================== */
body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin: 5px;
    padding: 10px;
    background-color: #E1F0F0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
}

footer {
    background-color: #FF3366;
    text-align: center;
    padding: 1px;
    border-radius: 10px;
}

.no-link {
    color: inherit;       /* usa el color del texto normal */
    text-decoration: none; /* quita el subrayado */
}

/* ===========================
   CONTENEDORES DE PRODUCTOS
=========================== */
.product-container1 {
    flex: 0 0 20%;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ===========================
   ITEMS INDIVIDUALES
=========================== */
.product-item1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    border: none;
    border-radius: 15px;
    box-shadow: 3px 3px 3px rgba(248,158,69,.5);
    padding-top: 10px;
    width: calc(18% - 5px);
    background-color: #FCFAE2;
}

/* ===========================
   TEXTO DE PRODUCTOS
=========================== */
.product-info {
    display: flex;              
    justify-content: center;    
    align-items: center;        
    padding: 5px;              
    height: 50px;
    box-sizing: border-box;     
    text-align: center;         
}

.product-info p {
    font-size: 14px;
    word-wrap: break-word;
    margin: 0;
}

/* ===========================
   ELEMENTOS DE INTERFAZ
=========================== */
.izquierda,
.derecha {
    padding: 3px;
    display: flex;
    align-items: center;
}

.img {
    padding: 1px;    
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.img_der{
	background: rgba(255,255,255,1);
	border-radius: 10px;
	border: none;
}

.img_mm {
    width: auto;
    height: 70px;
    cursor: pointer;
    border-radius: 20px;
    padding-bottom: 20px;
}

/* ===========================
   AVISO DE COOKIES
=========================== */
#cookie-aviso {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 15px;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
}

#cookie-aviso button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
}



/* ===========================
   RESPONSIVE
=========================== */
@media only screen and (min-width: 320px) and (max-width: 736px) {
    .product-item1 {
        flex: 45%; /* 100% / 5 = 20% */
        height: auto;
		display: inline-block;
        margin: 5px;
        border-radius: 20px;
    }

    .img_mm {
        width: auto;
        height: 35px;
    }    

    input[type='text'] {
        font-size: 14px;
        width: auto;
        height: auto;
        padding: 10px;
        border: 1px solid black;
        border-radius: 5px;
    }

	.product-info p {
		text-align: center;
		font-size: 14px;
		margin: 1px 0;
	
		/* Evita que el texto se salga horizontalmente */
		/*overflow-wrap: break-word;    rompe palabras largas */
		word-wrap: break-word;       /* soporte legacy */
		hyphens: auto;               /* agrega guiones si es necesario */
	
		/* Controla el ancho */
		max-width: 100%;             /* nunca más ancho que el div */
		box-sizing: border-box;      /* incluye padding/border en el cálculo */
	
		/* Controla la altura */
		line-height: 1.4;            /* mejora legibilidad */
		overflow: hidden;            /* oculta exceso vertical si lo hubiera */		
	}        
}