:root {
  --color-background: #000000;
  --color-primary: #ef0000;
  --color-primary-light: #ffe0b2;
  --color-primary-dark: #ef0000;
  --color-secondary: #5e35b1;
  --color-secondary-light: #5e35b1;
  --color-secondary-dark: #5e35b1;
  --color-text-light: #ffffff;
  --color-text-dark: #263238;
}

#loader {
  width: 100%;
  background: var(--color-background);
  height: 100%;
  position: fixed;
  display: flex;
  z-index: 99;
  align-items: center;
  justify-content: center;
}

.loaded #loader {
  display: none;
}

.cssload-loader {
  width: 85px;
  height: 17px;
  position: fixed;
  top: 40vh;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cssload-loader > div {
  content: " ";
  width: 17px;
  height: 17px;
  background-color: var(--color-primary);
  border-radius: 100%;
  position: absolute;
  animation: cssload-shift 2.3s linear infinite;
}

.cssload-loader > div:nth-of-type(1) {
  animation-delay: -0.46s;
}

.cssload-loader > div:nth-of-type(2) {
  animation-delay: -0.92s;
}

.cssload-loader > div:nth-of-type(3) {
  animation-delay: -1.38s;
}

.cssload-loader > div:nth-of-type(4) {
  animation-delay: -1.84s;
}

@keyframes cssload-shift {
  0% {
    left: -51px;
    opacity: 0;
  }
  10% {
    left: 0;
    opacity: 1;
  }
  90% {
    left: 85px;
    opacity: 1;
  }
  100% {
    left: 136px;
    opacity: 0;
  }
}

body {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: Arial;
}

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

img {
  max-width: 100%;
}

button {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: bold;
  border-radius: 10px;
  border: 0;
  vertical-align: middle;
  padding: 0.75em 1em;
  cursor: pointer;
}

.btn-filter {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: bold;
  border-radius: 10px;
  border: 0;
  vertical-align: middle;
  padding: 0.75em 1em;
  cursor: pointer;
}
.btn-filter.active {
  color: var(--color-text-light); /* Cambia el color del texto */
}

button:hover {
  filter: brightness(1.15);
}

button:active,
button:focus {
  filter: brightness(0.95);
}
#content {
  max-width: 100dvw;
  /* margin: 0 auto; */
  /* padding: 0 1em; */
}

header {
  display: flex;
  flex-flow: column;
  justify-content: center;
  color: var(--color-text-light);
  text-align: center;
  margin: 0.5em 0em 2em 0em;
}

header img {
  margin: 0 20px 0 0;
  /* box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5); */
  /* border-radius: 100%; */
  width: 50px;
  height: 50px;
}

header h1 {
  font-size: x-large;
}

header h3 {
  font-size: large;
  margin-top: 1em;
}

header input {
  display: none;
}

header #nombrede {
  margin-left: 25px;
  display: flex;
  height: 50px;
  text-align: center;
  align-content: center;
  align-items: center;
}
header #banner {
  width: 100dvw;
  height: 100%;
  border-radius: 0%;
}
header #link-wpp {
  background-color: #6cbc4c;
  width: 3em;
  height: 3em;
  border-radius: 100%;
  padding: 0.7em;
  position: absolute;
  right: 0;
  top: 0;
}

header #desc {
  padding-top: 10px;
  padding-bottom: 10px;
  color: #000000;
  background: rgb(203, 0, 255);
  background: linear-gradient(
    90deg,
    rgba(203, 0, 255, 0.1978991425671831) 0%,
    rgba(255, 139, 0, 1) 30%,
    rgba(255, 0, 0, 1) 50%,
    rgba(255, 139, 0, 1) 70%,
    rgba(203, 0, 255, 0.2) 100%
  );
}

header #link-wpp svg {
  fill: #ffffff;
}

.nombre-negocio {
  font-family: "Story Script", cursive;
  font-size: 3em; /* ajusta según diseño */
  font-weight: normal;
  letter-spacing: 1px;
  color: #ffd900; /* o el color que combine con tu tema */
}
#banner {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación 16:9 */
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* evita clics sobre el video */
}

.banner-placeholder {
  width: 100%;
  height: 300px;
  background: #ccc;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 10px;
}

#instructions {
  margin-top: 1.5em;
  color: var(--color-text-dark);
  background-color: var(--color-primary-light);
  padding: 0.5em 0.7em;
  border-radius: 10px;
}

#btnCont {
  margin: 0 auto;
  padding: 0 0 3em 0;
  max-width: 50em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
  grid-gap: 1em;
}

#productsCont {
  /* ADDDD */
  margin: 0 auto;
  padding: 0 1em;
  max-width: 50em;
}

#products {
  padding-bottom: 3em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
  grid-gap: 1em;
}

#products .product {
  margin-bottom: 1em;
}

#products .product .product_image {
  border-radius: 10px;
  height: 20em;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
}

#products .product .product_image img {
  min-height: 100%;
  object-fit: cover;
}

#products .product .productData {
  background-color: #ffffff;
  padding: 1em;
  border-radius: 10px;
  margin: -5em 1em 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

#products .product .productData h3 {
  margin-bottom: 0.5em;
}

#products .product .productData .footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
  font-weight: bold;
  align-items: center;
}

#products .product .productData .footer .price {
  color: var(--color-primary-dark);
  font-size: 1.2em;
}

#products .product .productData .footer .actions {
  display: flex;
}

#products .product .productData .footer button.remove {
  background-color: white;
  box-shadow: inset 0 0 0 3px var(--color-primary);
  margin-right: 0.6em;
  display: flex;
  align-items: center;
}

#products .product .productData .footer button.remove svg {
  fill: var(--color-primary);
  width: 1em;
}

#products .product .productData .footer button.remove.notVisible {
  display: none;
}

#showOrder {
  display: flex;
  justify-content: center;
  position: fixed;
  z-index: 7;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 1em;
  background-color: var(--color-background);
  transform: translateY(6em);
  transition: 0.3s ease-out;
}

#showOrder.visible {
  transform: translateY(0);
}

#showOrder .content {
  max-width: 23em;
  flex-grow: 1;
  padding: 0.8em 2em;
  background-color: var(--color-primary-dark);
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: var(--color-text-light);
}

#totalPrice.animate,
#totalPricePreview.animate {
  animation: jump 0.3s ease-out;
}

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

#order {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  background: white;
  bottom: 0;
  right: 0;
  transform: translateY(100vh);
  transition: 0.3s ease-out;
  padding: 0 1em 1em;
}

#order.visible {
  transform: translateY(0);
}

#order .content {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  max-width: 25em;
  margin: 0 auto;
  height: 100%;
}

#order #close {
  height: 5em;
  text-align: left;
  background: white;
  color: var(--color-text-dark);
}

#order .list {
  flex-grow: 2;
  padding: 1.5em 0 1em;
}

#order .list h2 {
  margin-bottom: 1em;
}

#order .list input {
  font-weight: 500;
  font-size: 14px;
  height: 40px;
  width: 100%;
  border-radius: 10px;
  padding-left: 10px;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  outline: none;
  padding-top: 2em;
  padding-bottom: 2em;
}

#order .list input:focus {
  border-bottom: 1px solid #6941c6;
  -webkit-transition: 0.1s;
  transition: 0.5s;
}

#order .radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: #eee;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 14px;
}

#order .radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
}

#order .radio-inputs .radio input {
  display: none;
}

#order .radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all 0.15s ease-in-out;
}

#order .radio-inputs .radio input:checked + .name {
  background-color: #fff;
  font-weight: 600;
}

#order #orderList {
  overflow-y: auto;
  max-height: calc(100vh - 12em);
  padding-bottom: 13em;
}

#order #orderList li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0.6em;
  align-items: center;
}

#order #orderList li span:first-child {
  width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#order #orderList li .quant {
  background-color: #f4f4f5;
  border-radius: 2em;
  padding: 0.2em;
  display: flex;
  align-items: center;
}

#order #orderList li .quant span {
  margin: 0 0.5em;
}

#order #orderList li .quant button {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 100%;
  padding: 0;
  vertical-align: middle;
  border: 0;
  font-size: 1.1rem;
  cursor: pointer;
  color: #78767a;
  font-weight: bold;
  background-color: #e1e0e2;
}

#order #orderList li .quant .remove svg {
  width: 0.6em;
  fill: #78767a;
}

#order #orderList li .subTotal {
  font-weight: bold;
}

#order .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 1em;
}

#order .footer .col:first-child {
  padding-right: 1em;
  flex-grow: 1;
}

#order .footer #purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  width: 20em;
}

#order .footer #purchase svg {
  height: 1.4rem;
  vertical-align: middle;
  margin-right: 0.5em;
}

#order .footer #totalPrice {
  font-weight: bold;
}

#order .footer .col:last-child {
  display: flex;
  flex-flow: column;
  text-align: end;
}

#order .footer .col:last-child #totalPrice {
  font-size: 1.5em;
}

#site-footer {
  padding: 0 1em 1em;
  font-size: 0.9em;
}

#site-footer #logofooter {
  padding: 0 1em 1em;
  display: flex;
  height: 55px;
  text-align: center;
  align-content: center;
  align-items: center;
  color: var(--color-text-light);
  padding-bottom: 3em;
}
#site-footer #informacion {
  padding-top: 1em;
  display: flex;
  text-align: center;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-light);
  padding-bottom: 3em;
}

#site-footer #informacion #redes i {
  width: 50px;
  height: 50px;
}

#site-footer #rigths {
  display: flex;
  justify-content: center;
  color: var(--color-text-light);
  align-items: center;
  padding-top: 2.5em;
  padding-bottom: 1.5em;
}

#site-footer img {
  width: 55px;
  height: 55px;
}

#site-footer h3 {
  padding-left: 1em;
  fill: var(--color-text-light);
  margin-right: 0.6em;
}

#site-footer a {
  text-decoration: none;
  color: inherit;
}
