@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  --primary: #f59900;
  --secondary: #003d1f;
  --accent: lightsalmon;
  --light: #eee;
  --gray30: #b2b2b2;
  --gray70: #4d4d4d;
  --breaksm: 576px;
  --breakm: 768px;
  --breakl: 960px;
  --breakxl: 1200px;
}

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

body {
  font-family: 'Ubuntu', sans-serif;
}

.width-container {
  width: 90%;
  max-width: 62rem;
  margin: 0 auto;
}

.full-container {
  width: 100%;
}

.full-height {
  min-height: 70vh;
}

/* HEADER Y NAV */

header {
  background-color: rgba(255, 255, 255, 0.3);
}

header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0.5rem;
}

header ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

header li {
  margin: 0 1rem;
  padding: 1rem;
}

header li > a {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary);
}

header li > a:hover {
  border-bottom: 0.25rem solid var(--primary);
  font-weight: bold;
}

header li > .active-lnk {
  color: var(--primary);
}

header img {
  margin: 0.5rem 0;
  max-width: 15rem;
}

.logout-btn {
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: .2rem .8rem;
  padding: .5rem .5rem;
}

@media only screen and (max-width: 1000px) {
  header > div {
    flex-direction: column;
    justify-content: center;
  }
}/*750px*/

@media only screen and (max-width: 710px) {
  header > div {
    flex-direction: row;
    justify-content: space-between;
  }

  header ul {
    flex-direction: column;
    text-align: center;
  }

  header li {
    padding: 0.5rem;
  }

  header {
    padding: 1rem 0;
  }
}/*555px*/

@media only screen and (max-width: 400px) {
  header > div {
    flex-direction: column;
    justify-content: center;
  }

  header {
    padding: 1.25rem 0;
  }
}/*325px*/

/* FOOTER */

footer {
  padding: 5rem;
  background-color: var(--primary);
}

footer > div {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

footer > div > div {
  width: 18rem;
  text-align: center;
  margin-bottom: 2rem;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0 1rem;
  padding: 1rem;
}

footer li > a {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary);
}

footer li > a:hover {
  border-bottom: 0.25rem solid var(--primary);
  font-weight: bold;
}

.social-media p {
  margin: 0 1rem;
  padding: 1rem;
  color: var(--secondary);
}

.footer-logo {
  text-align: center;
  padding: 0 1rem;
  color: var(--secondary);
}

.footer-logo img {
  margin-bottom: 2rem;
  width: 100%;
  background-color: rgba(255, 255, 255, .5);
  padding: .5rem;
  border-radius: .5rem;
}

@media only screen and (max-width: 1119px) {
  .footer-logo {
    order: 1;
  }

  .footer-nav {
    order: 2;
  }

  .social-media {
    order: 3;
  }
}

@media only screen and (max-width: 500px) {
  footer {
    padding: 2.5rem;
  }
}

/* HOME */

.hero-home {
  background-image: url('../images/site/coffee-medium.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-home > div {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30rem;
  margin-bottom: 5rem;
}

.hero-home > div img {
  max-width: 25rem;
  margin-top: 1.5rem;
}

.hero-home > div > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  color: var(--secondary);
  font-size: 3rem;
  font-weight: bold;
  margin-left: 4rem;
}

@media only screen and (max-width: 710px) {
  .hero-home > div {
    flex-direction: column;
  }
  .hero-home > div > div {
    background-color: rgba(255, 255, 255, .4);
    padding: 1rem;
    border-radius: .5rem;
    font-size: 2rem;
    width: 75%;
    margin-left: 0;
  }
  .hero-home > div img {
    width: 100%;
  }
}

@media only screen and (max-width: 460px) {
  .hero-home > div > div {
    width: 100%;
    border-radius: 0;
    margin-left: 0;
  }
}

.last-home {
  margin-bottom: 5rem;
}

.last-home > h2, .contact-form h2, .products h2, .cart h2 {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gray30);
  padding-bottom: 2rem;
}

.last-home > div {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.last-home img, .product-card img {
  width: 90%;
  max-height: 16rem;
  text-align: center;
}

/* COMPROMISOS */

.promise-home {
  margin-bottom: 5rem;
}

.promise-home h2 {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gray30);
  padding-bottom: 2rem;
}

.promise-home > div {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.promise-home > div > div {
  width: 30%;
  min-width: 300px;
  text-align: justify;
}

.promise-home > div > div h3 {
  margin: 1rem 0;
}

.promise-home > div > div p {
  margin-bottom: 1rem;
}

.promise-home > div > div i {
  text-align: center;
  font-size: 5rem;
  color: var(--primary);
}

/*.promise-home img { VER DP CON IMG GRANO???
  width: 90%;
  max-height: 16rem;
  text-align: center;
}*/

@media only screen and (max-width: 665px) {
  .promise-home > div > div {
    margin-bottom: 3rem;
  }
}

/* TBK */

.buy-home {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.buy-home > div {
  width: 40%;
  min-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.buy-home > div > img {
  max-width: 15rem;
}
.buy-home > div > div {
  margin-bottom: 2rem;
}

.buy-home > div > div > img {
  max-width: 15rem;
}


/* PRODUCTS */

.product-card {
  width: 20rem;
  margin-bottom: 3rem;
  box-shadow: 5px 5px 5px var(--gray30);
  border-radius: .2rem .8rem;
  border: 1px solid var(--light);
  padding: 1rem;
  text-align: center;
}

.product-card p {
  padding-top: .8rem;
}

.product-card button {
  /*border: 1px solid var(--primary);*/
  color: var(--primary);
  background-color: var(--secondary);
  font-weight: bold;
  border-radius: .2rem .8rem;
  padding: .5rem 1.2rem;
  margin-top: .5rem;
}

.product-card input {
  margin-top: .8rem;
  padding: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  width: 5rem;
}

.product-card form {
  display: flex;
  column-gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}

.product-card-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

@media only screen and (max-width: 1066px) {
  .product-card-list {
    justify-content: space-evenly;
  }
}

.product-filter {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  margin-top: .8rem;
}

.product-filter select, .product-filter button {
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem;
  width: 6rem;
}

.product-filter span {
  margin-bottom: 1rem;
  width: 15%;
}

.product-filter span select {
  width: 100%;
}

.product-filter span label {
  display: block;
}

.product-filter span button {
  margin-top: 1.25rem;
  color: var(--primary);
  background-color: var(--secondary);
  font-weight: bold;
}

.product-filter-error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30rem;
  font-size: 1.5rem;
}

@media only screen and (max-width: 930px) {
  .product-filter span {
    width: 30%;
  }
}

@media only screen and (max-width: 550px) {
  .product-filter span {
    width: 45%;
  }
}

@media only screen and (max-width: 400px) {
  .product-filter span {
    width: 90%;
  }
}

.products > form {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid var(--gray30);
  margin-bottom: 3rem;
}

.product-show {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.product-show h2 {
  margin: 1rem 0;
  border-bottom: 2px solid var(--light);
  padding-bottom: 1rem;
}

.product-show p {
  margin-bottom: 1rem;
}

.product-show img {
  width: 90%;
  max-height: 28rem;
}

.product-show-image {
  text-align: center;
  padding-bottom: 5rem;
}

.product-show-text {
  text-align: justify;
  padding: 0 2rem;
}

.product-show-description {
  padding: 2rem 0;
}

.product-show-price {
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 2rem;
}

.product-show form {
  display: flex;
  column-gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.product-show button {
  color: var(--primary);
  background-color: var(--secondary);
  margin-top: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem 1.2rem;
}

.product-show input {
  margin-top: .8rem;
  padding: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  width: 8rem;
}

/* CONTACT FORM */

.contact-form {
  background-color: var(--light);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.contact-upper {
  display: flex;
  justify-content: space-between;
}

.contact-form form > div, .contact-form form > div > div {
  padding-bottom: 1rem;
}

.contact-form form input {
  display: block;
  margin-top: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem;
  width: 100%;
}

.contact-form button {
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: 1rem 3rem;
  margin-top: .5rem;
}

textarea {
  width: 100%;
  margin-top: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem;
  display: block;
}

@media only screen and (max-width: 629px) {
  .contact-upper {
    flex-direction: column;
  }
}

@media only screen and (min-width: 830px) {
  .contact-upper > div {
    width: 30%;
  }
}

/* CART */

.cart {
  min-height: 37rem;
}

.cart-item {
  display: flex;
  column-gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--light);
  padding-bottom: .5rem;
  margin-bottom: .5rem;
}

.cart-item img {
  width: 3rem;
}

.cart-item button {
  color: var(--primary);
  background-color: var(--secondary);
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem 1.2rem;
  margin-top: .5rem;
}

.cart-item input {
  margin-top: .8rem;
  padding: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  width: 5rem;
}

.cart > p {
  margin: 1rem 0;
}

.cart-total {
  text-align: right;
  padding-bottom: 3rem;
}

#delete-cart {
  background-color: red;
  color: white;
  font-size: 1.2rem;
}

.cart-finish {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.cart-finish select, .cart-finish button, #finish {
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem;
  width: 15rem;
  margin-bottom: .8rem;
}

.cart-empty {
  text-align: center;
  padding-top: 10rem;
}

/* USER FORMS */

.user-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-form > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 5px var(--gray30);
  border-radius: .2rem .8rem;
  border: 1px solid var(--light);
  padding: 2rem;
}

.user-form form input {
  display: block;
  margin-top: .5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray30);
  border-radius: .2rem .8rem;
  padding: .5rem;
}

.user-form form button {
  color: var(--primary);
  background-color: var(--secondary);
  /*border: 1px solid var(--gray30);*/
  border-radius: .2rem .8rem;
  padding: .5rem 1.2rem;
  display: block;
  margin: 2rem 0;
}

.user-form h2 {
  margin-bottom: 1.5rem;
}

/* CSS TEST */

.galeria1 {
  display: flex;
  height: 20rem;
  gap: 1rem;
}

.galeria1 > div {
  flex: 1;
  border-radius: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  transition: all .8s cubic-bezier(.25, .4, .45, 1.4);
}

.galeria1 > div:hover {
  flex: 5;
}

/* END CSS TEST */
