/* styles.css - Estilos básicos */
@import url('loading-container.css');

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #B0C9D1;
}

/* =====================
   HEADER
===================== */
header{
    height: 100px;
    background-color: black;
    color: white;
    text-align: center;
    background-size: 400% 400%;  
    animation: gradient 12s ease infinite;
    position: relative;
    z-index: 1;
}

.avatar{
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 15px;
}

.avatar-img{
    width: 70px;
    height: 70px;
}

.avatar-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-text{
    text-transform: uppercase;
}

.avatar-text h2{
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: 4px;
    margin-bottom: 2px;
}

.avatar-text p{
    font-weight: 400;
    font-style: italic;
    font-size: 0.7em;
    color: #ccc;
    letter-spacing: 2px;
}

.login-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.login-button a {
  color: #ffffff;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.login-button a:hover {
  background-color: rgba(46, 155, 255, 0.8);
}

/* =====================
   MAIN
===================== */
main{
    padding: 20px;
}

.search {
    padding: 10px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.search input {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 10px;
    width: 100%;
    border: 1px solid #888;
    border-radius: 6px;
}

#box{
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #B0C9D1;
}

/** Fondo animado **/
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;    
}

/* =====================
   PRODUCTOS
===================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.producto {
    display: flex;
    width: 345px;
    flex-direction: column;
    border: 1px solid rgb(51, 51, 51);
    border-radius: 12px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease;
    align-content: space-between;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.box-img{
    flex-shrink: 0;
}

.box-img img {
    width: 120px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
}

/*---*/
.img-efecto {
	--trans-duration: 500ms;
	--trans-timing-function: ease-in-out;
	--trans-timing-function-hover: linear(
		0,
		0.074 8.6%,
		0.138 14.6%,
		0.212 19.7%,
		0.304 24.4%,
		0.554 33.2%,
		0.999 44.7%,
		0.718 53.2%,
		0.654 56.7%,
		0.634 60%,
		0.651 63.1%,
		0.704 66.3%,
		0.999 77.4%,
		0.933 81.4%,
		0.914 85%,
		0.926 88.2%,
		0.989 95.7%,
		1
	);

	position: relative;
	display: grid;
    height: 180px;
	/****  Acá va la imagen de fondo ****/
	/*background-image: url(https://raw.githubusercontent.com/cbolson/assets/refs/heads/main/codepen/grill/man-holding-burger.png);
	background-size: cover;*/
	/*border: 1px solid rgba(255 255 255 / 0.5);*/
	border-left: none;
	border-top: none;

	/**--> Efecto para la img --->*/
	&:hover {
		--img-efecto-scale: 250%;
		--img-efecto-rotate: 12deg;
		--img-efecto-drop-shadow-opacity: 1;
		--trans-timing-function: var(--trans-timing-function-hover);
	}

	& > img {
		grid-area: 1/1;
		transition: all var(--trans-duration) var(--trans-timing-function);
		cursor: grab;
		object-fit: cover;
		pointer-events: none;
		z-index: 1;
		scale: var(--img-efecto-scale, 1);
		rotate: var(--img-efecto-rotate, 0);
		filter: drop-shadow(
			0 0 25px rgba(0 0 0 / var(--img-efecto-drop-shadow-opacity, 0))
		);
	}
}

/*---*/

.box-dat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =====================
   TEXTOS
===================== */
hr{
    height: 5px;
    margin: 8px;
    background-color: #B0C9D1;
}

/** R O W **/
.rowPri{
    display: block;
    float: right;
    color: white;
    background: #282828;
    padding: 4px;
}
.rowPri h3{
    font-weight: 600;
    font-size: 0.875em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/** row Sec. **/
.rowSec{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
}
.rowSec p{
    margin: 0;
    padding: 2px 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    font-size: 1em;
}
.rowSec p:last-child {
    align-self: flex-end;
}

p strong{
    font-weight: 600;
    color: #0066cc;
    font-size: 1.1em;
}

.txt{
    margin: 2px;
}

/* Por defecto en escritorio/tablet */
.cod-alternate .short {
  display: none;
}
.cod-alternate .full {
  display: inline;
}

/** row Ter. **/
.rowTer{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
}
.rowTer p{
    width: 100%;
    margin: 0;
    padding: 2px 0;
    font-size: 1em;
    text-align: center;
}

/** row Cua. **/
.rowCua{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
}
.rowCua p{
    width: 100%;
    font-size: 1em;
    text-align: center;
}

/** row Sen. **/
.rowSen{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

/** row Sep. **/
.rowSep{
    width: 110px;
    height: 32px;
    border-radius: 20px;
    border: 1px solid rgb(51, 51, 51);
    background-color: #B0C9D1;
    display: flex;
    color: #181818;
    font-weight: 500;
    box-shadow: inset 0px 0px 2px 2px rgba(51, 51, 51, 0.425);
    margin: 5px auto;
}

.rowSep p{
    margin: auto;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
}

/** PEDIDO ESTADO **/
.rowSen{
    margin: 10px auto;
}

.estado {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}
.pedir {
    background-color: #f8d7da;
    color: #721c24;
    letter-spacing: 2px;
    border: 1px solid #f5c6cb;
}
.pedido {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* =====================
   MEDIA QUERIES
===================== */
@media (max-width: 900px) {
    .avatar {
        flex-direction: column;
        text-align: center;
    }
    .avatar-text h2 {
        font-size: 1.5em;
    }
    .producto {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .box-img img {
        margin: 0 auto 10px;
    }
}

@media (max-width: 1024px) {
    .avatar {
        flex-direction: column;
        text-align: center;
    }

    .avatar-text h2 {
        font-size: 1.4em; /* Reducido para que no ocupe demasiado espacio */
    }



    .producto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 90%;  /* Asegúrate de que los productos no estén demasiado anchos */
    }
    .box-img img {
        margin: 0 auto 10px;
    }

    .search input {
        width: 80%;  /* Hacer que el campo de búsqueda ocupe más espacio */
    }

    #box {
        padding: 15px; /* Un poco menos de espacio en el contenedor */
    }

    /* Ajustar el login button para pantallas más grandes */
    .login-button {
        top: 15px;
        right: 15px;
    }
    .login-button a {
        font-size: 22px;
    }

    /* Ajuste de márgenes y padding generales */
    header {
        height: 150px;  /* Puedes aumentar la altura del header si es necesario */
    }

   
    .rowPri h3 {
        font-size: 1.1em; /* Ajusta el tamaño para pantallas más pequeñas */
    }

    .box-img img {
        height: auto;
        margin-right: 15px;
        object-fit: contain;
    }

    .productos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* Aumentamos el tamaño mínimo */
        gap: 20px;
    }

    .producto {
        width: 300px;
        transition: transform 0.2s ease-out, box-shadow 0.3s ease-out; /* Ajusta el tiempo de las transiciones */
    }

    #particles-js {
        width: 100%;
        height: 100%;
        z-index: 0;
    }

}




@media (max-width: 600px) {
    header {
        height: auto;
        padding: 10px;
    }
    .avatar-img {
        width: 60px;
        height: 60px;
    }
    .login-button {
        top: 10px;
        right: 10px;
    }
    .login-button a {
        font-size: 20px;
        padding: 8px;
    }
    .avatar-text h2 {
        font-size: 1.2em;
    }
    .avatar-text p {
        font-size: 0.6em;
    }

    /* Partículas */
    #particles-js {
        
        width: 96%;
        height: 94%;
            
    }

    .producto {
        width: 100%;
    }

    /* El h3 ocupa todo el ancho */
    h3 {
        text-align: center;
        width: 100%;
        margin: 10px 0;
    }

    .cod-alternate .short {
        display: inline;
    }
    .cod-alternate .full {
        display: none;
    }
    
}

/* En celular (ej: menos de 768px) 
@media (max-width: 767px) {
  .cod-alternate .short {
    display: inline;
  }
  .cod-alternate .full {
    display: none;
  }
}*/