:root {
  /* COLORS */
  --white: #FFFFFF;
  --black: #000000;
  --gray-a: #F8F8F8;
  --gray-b: #DEDEDE;
  --magenta: #EC008C;
  --magenta-hover: #FF55BA;
  --green: #84C98B;
  --green-hover: #5EAF66;
  --purple: #5C2D91;
  --purple-hover: #986BCB;
  --yellow: #FFD400;
  --yellow-hover: #FFF500;
  --facebook: #0866ff;
  --instagram: #AB1B86;
  --whatsapp: #25d366;
  /*TEXT*/
  --font-size-normal: 14px;
  --font-size-giant: 20px;
  /*OTHERS*/
  --gutter: 20px 40px;         /* separación entre columnas */
  --border-radius: 10px;
  --machine-width: 400px;
  --machine-height: 640px;
  --machine-padding: calc(var(--machine-height) - 20px);
}

/*GENERAL*/

* {
  box-sizing: border-box;
}
/*Use a value from 100 to 900*/
.font {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
body {
  background: linear-gradient(to right,  var(--purple) 0%,var(--purple-hover) 50%,var(--purple) 100%);
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-normal);
  padding: 0;
  margin: 0;
}
img {
  display: block;
  vertical-align: bottom;
}

/*TEXTS*/
h1, h2, h3, h4, h5 {
  font-weight: 800;
  margin: 0 0 20px 0;
  padding: 0;
  line-height: normal;
}
p {
  margin: 0 0 10px 0;
}
b {
  font-weight: bold;
}
.title-xl {
  font-size: clamp(3rem, 20vw, 5rem);
  line-height: 1em;
}
.title-l {
  font-size: clamp(2rem, 15vw, 3rem);
}
.title-m {
  font-size:  clamp(1rem, 10vw, 2rem);
}
.title-s {
  font-size: clamp(1rem, 5vw, 2rem);
}
.title-shadow {
  text-shadow: 0 8px 5px rgba(0,0,0,0.2);
}
.uppercase {
  text-transform: uppercase;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}
.text-white {
  color: var(--white) !important;
}
.text-black {
  color: var(--black) !important;
}
.text-purple {
  color: var(--purple) !important;
}
.text-magenta {
  color: var(--magenta) !important;
}
.text-green {
  color: var(--green) !important;
}
.text-yellow {
  color: var(--yellow) !important;
}
.font-size-giant {
  font-size: var(--font-size-giant);
  font-weight: 500;
}
.text-limit {
  max-width: 70%;
  margin: 0 auto 10px auto;
}

/*HEADER*/

#main-header {
  width: 100%;
  height: 80px;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-around;
  position: relative;
  top: 0;
  left: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 100;
  transition: all 0.4s ease;
}
#main-header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*STICKY HEADER*/

#main-header.sticky {
  position: fixed;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: slide-bottom 0.4s ease;
}
#main-header.sticky .menu-logo {
  margin: 0 auto;
  width: 80px;
  height: 80px;
}
#main-header.sticky nav[aria-label="Main Menu"] a,
#main-header.sticky nav[aria-label="Social Menu"] a {
  color: var(--purple);
}
#main-header.sticky .hamburger span {
  background: var(--purple);
}
@keyframes slide-bottom {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/*MENU*/

nav a {
  display: block;
  color: var(--white);
  transition: ease 0.3s;
  font-size: 14px;
}
nav[aria-label="Main Menu"] {
  width: 30%;
  display: flex;
  justify-content: flex-start;
  order: 1;
}
nav[aria-label="Main Menu"] a {
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.4s ease, border-bottom 0.3s ease;
}
nav[aria-label="Main Menu"] a:hover,
nav[aria-label="Main Menu"] a:active {
  border-bottom: 2px solid var(--yellow);
}
nav[aria-label="Social Menu"] {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  order: 3;
}
nav[aria-label="Social Menu"] a {
  text-decoration: none;
  margin: 0 5px;
  font-size: 20px;
  transition: color 0.4s ease, border-bottom 0.3s ease;
}
nav[aria-label="Social Menu"] a:hover,
nav[aria-label="Social Menu"] a:active,
#main-header.sticky nav[aria-label="Social Menu"] a:hover,
#main-header.sticky nav[aria-label="Social Menu"] a:active {
  color: var(--yellow);
}
.menu-logo {
  width: 90px;
  height: 90px;
  margin: 20px auto 0 auto;
  order: 2;
}
.menu-logo a {
  display: block;
  width: 100%;
  height: 100%;
  background: url('../images/logo.svg') #FFFFFF no-repeat center center;
  background-size: 40% auto;
  border-radius: 50%;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.menu li {
  position: relative;
}

/*SUBMENU*/

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: var(--white);
  padding: 10px 0;
  min-width: 150px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.submenu li {
  padding: 0;
}
.submenu li a {
  display: block;
  padding: 8px 20px;
  margin: 0;
  border: none;
  font-size: 14px;
  color: var(--purple);
  border-bottom: none;
}
.submenu li a:hover,
.submenu li a:active {
  background: var(--yellow);
  border-bottom: none;
}
/* Mostrar submenu al hover/focus */
.has-submenu > a {
  border-bottom: none;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

/*HAMBURGER MENU*/

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  background: transparent;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  margin: auto;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.4s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/*SOCIAL MEDIA BUTTON*/

/* Contenedor flotante */
.social-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 1000;
}
/* Botón principal */
.fab-main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 2;
}
.fab-main.open {
  background: #ff4444;
  transform: rotate(45deg);
}
/* Opciones */
.fab-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(0) scale(0);
  transition: transform 0.4s ease, opacity 0.3s ease;
  position: absolute;
  bottom: 5px; /* arranca desde atrás del botón */
  right: 5px;
  font-size: 20px;
  text-decoration: none;
}
/* Estado abierto: despliegue hacia arriba */
.social-fab.open .fab-option:nth-child(2) {
  transform: translateY(-70px) scale(1);
  opacity: 1;
  transition-delay: 0s;
}
.social-fab.open .fab-option:nth-child(3) {
  transform: translateY(-140px) scale(1);
  opacity: 1;
  transition-delay: 0.05s;
}
.social-fab.open .fab-option:nth-child(4) {
  transform: translateY(-210px) scale(1);
  opacity: 1;
  transition-delay: 0.1s;
}

/*TEMPLATE*/

.m-0 {
  margin: 0 !important;
}
.mt-20 {
  margin-top: 20px !important;
}
.mt-40 {
  margin-top: 40px !important;
}
.mt-60 {
  margin-top: 60px !important;
}
.mtb-20 {
  margin: 20px 0 !important;
}
.mtb-40 {
  margin: 40px 0 !important;
}
.mtb-60 {
  margin: 60px 0 !important;
}
.p-0 {
  padding: 0 !important;
}
.pt-20 {
  padding-top: 20px 0 !important;
}
.pt-40 {
  padding-top: 40px 0 !important;
}
.pt-60 {
  padding-top: 60px 0 !important;
}
.ptb-20 {
  padding: 20px 0 !important;
}
.ptb-40 {
  padding: 40px 0 !important;
}
.ptb-60 {
  padding: 60px 0 !important;
}

/*base columns*/

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* default */
  margin-left: -10px;
  margin-right: -10px;
}
.col {
  padding: 10px 15px;
  box-sizing: border-box;
  flex: 0 0 auto; /* evita que crezcan */
}
.col-1 {
  width: 8.33%;
}
.col-2 {
  width: 16.66%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.33%;
}
.col-5 {
  width: 41.66%;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 58.33%;
}
.col-8 {
  width: 66.66%;
}
.col-9 {
  width: 75%;
}
.col-10 {
  width: 83.33%;
}
.col-11 {
  width: 91.66%;
}
.col-12 {
  width: 100%;
}
.row.center-col {
  justify-content: center;
}
.row .col.last-col {
  margin: auto;
}
.main-wrapper {
  width: 100%;
  overflow: hidden;
}
.content {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.section {
  padding: 80px 0;
}
.full-image {
  width: 100%;
  height: auto;
}
.middle-image {
  width: 70%;
  height: auto;
}

/*SECTIONS*/

/*hero*/

#hero {
  background: linear-gradient(to right,  var(--purple) 0%,var(--purple-hover) 50%,var(--purple) 100%);
  padding: 80px 0 0 0;
}
.floor {
  background: linear-gradient(to bottom,  var(--purple-hover) 0%,var(--green) 100%);
  width: 100%;
  height: 150px;
  position: relative;
  margin: var(--machine-padding) auto 0 auto;
}
.vending-machine {
  width: var(--machine-width);
  height: var(--machine-height);
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.vending-machine-products {
  width: 50%;
  position: absolute;
  bottom: 30%;
  left: 20%;
  z-index: 2;
}
.vending-machine-products img {
  width: 100%;
  height: auto;
}
.vending-machine-top {
  width: 100%;
  height: 80%;
  background-image: url('../images/vending-machine.webp');
  background-size: 100% auto;
  background-position: top center;
  position: relative;
  z-index: 3;
}
.vending-machine-bottom {
  width: 100%;
  height: 20%;
  background-image: url('../images/vending-machine.webp');
  background-size: 100% auto;
  background-position: bottom center;
  position: relative;
  z-index: 1;
}
.vending-machine-bg {
  background-color: var(--black);
  width: 90%;
  height: 50%;
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 0;
}
.vending-machine-shadow {
  background-color: var(--black);
  width: 95%;
  height: 5%;
  border-radius: 10px;
  position: absolute;
  bottom: -1%;
  left: 0;
  right: 0;
  filter: blur(10px);
  margin: auto;
}

/*products*/

#products {
  padding: 80px 0 0 0;
}
.card, .card-2 {
  background-color: rgba(255,255,255,0.8);
  width: 90%;
  margin: 60px auto 30px auto;
  position: relative;
  border-radius: var(--border-radius);
}
.card-2 {
  width: 100%;
  padding-top: 60px;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple);
  color: var(--white);
  width: 100px;
  height: 100px;
  font-size: 40px;
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: var(--border-radius);
  box-shadow:  -7px 7px rgba(0,0,0,0.2);
}
.card-2 .card-icon {
   top: -30%;
}
.card-icon img {
  width: 50%;
}
.card-img {
  background-size: cover;
  width: 100%;
  height: 150px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.card-title {
  background-color:  var(--purple);
  color: var(--white);
  width: 110%;
  margin: 0 -5%;
  border-radius: var(--border-radius);
  padding: 20px;
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow:  0 7px rgba(0,0,0,0.2);
}
.card-content {
  color: var(--black);
  padding: 20px;
  text-align: justify;
}
.card-snacks .card-img {
  background-image: url('../images/bg-snacks.jpg');
}
.card-drinks .card-img {
  background-image: url('../images/bg-drinks.jpg');
}
.card-healthy .card-img {
  background-image: url('../images/bg-helthy.jpg');
}
.tilt-right {
  transform: rotateZ(5deg);
}
.tilt-left{
  transform: rotateZ(-5deg);
}

/*CIRCLE PROGRESS*/

.progress{
  background-color: var(--gray-b);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  box-shadow: none;
  position: relative;
}
.progress > span {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 1;
}
.progress .progress-left {
  left: 0;
}
.progress .progress-bar {
  width: 100%;
  height: 100%;
  background: none;
  border-width: 5px;
  border-style: solid;
  position: absolute;
  top: 0;
}
.progress .progress-left .progress-bar {
  left: 100%;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  border-left: 0;
  -webkit-transform-origin: center left;
  transform-origin: center left;
}
.progress .progress-right {
  right: 0;
}
.progress .progress-right .progress-bar {
  left: -100%;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  border-right: 0;
  -webkit-transform-origin: center right;
  transform-origin: center right;
  /* animation: circle-progress 1.8s linear forwards; */
}
.progress .progress-value {
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  font-size: 14px;
  text-align: center;
  position: absolute;
  top: 5%;
  left: 5%;
  text-transform: uppercase;
}
.progress .progress-value p {
  margin: 0;
}
.progress-bar{
  border-color: #000;
}
.progress-left .progress-bar {
  /* animation: circle-progress 1.5s linear forwards 1.8s; */
}
@keyframes circle-progress {
  0%{
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
  }
  100%{
      -webkit-transform: rotate(180deg);
      transform: rotate(180deg);
  }
}

/*FORMS*/

label {
  display: block;
  width: 100%;
  padding: 10px 0;
}
input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], textarea {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  height: auto;
  padding: 10px;
  border: 1px solid var(--gray-b);
  border-radius: var(--border-radius);
}
textarea {
  width: 100%;
  height: 100px;
}
.button {
  background-color: var(--purple);
  display: inline-block;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}
.button:hover {
  box-shadow: 0 5px 0 rgba(0,0,0,0.2);
  transform: translate(0px, -3px);
  transition: all 0.3 ease;
}
.button:active {
  box-shadow: 0 0 0 rgba(0,0,0,0.2);
  transform: translate(0px, 0px);
}

/*FOOTER*/

footer {
  background-color: var(--purple);
  padding: 30px 0;
}
footer a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 5px 0;
  transition: all ease 0.3s;
}
footer a:hover, footer a:active {
  color: var(--yellow);
  text-decoration: underline;
  transform: translateX(5px);
}
footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0
}
footer ul ul {
  margin-left: 10px;
}
.title-footer {
  font-size: 20px;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 20px 0 0 0;
}
.footer-contact-logo {
  width: 15%;
  margin-right: 20px;
}
.footer-contact-info {
  background-color: var(--white);
  color: var(--purple);
  width: 75%;
  max-width: 260px;
  padding: 10px 20px;
  position: relative;
  border-radius: var(--border-radius);
  text-align: center;
}
.footer-contact-info:after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-right-color: var(--white);
	border-left: 0;
	margin-top: -10px;
	margin-left: -10px;
}
.footer-contact-info a, .footer-contact-info a:hover {
  color: var(--purple);
}
.footer-contact-info h4 {
  font-size: 20px;
  margin: 0;
}

/*COLORS*/

.bg-white {
  background-color: var(--white);
}
.bg-black {
  background-color: var(--black);
  color: var(--white)
}
.bg-gray-a {
  background-color: var(--gray-a);
}
.bg-gray-b {
  background-color: var(--gray-b);
}
.bg-purple {
  background-color: var(--purple);
  color: var(--white);
}
.bg-purple-hover {
  background-color: var(--purple-hover);
  color: var(--white);
}
.bg-magenta {
  background-color: var(--magenta);
  color: var(--white);
}
.bg-magenta-hover {
  background-color: var(--magenta-hover);
  color: var(--white);
}
.bg-green {
  background-color: var(--green);
  color: var(--white);
}
.bg-green-hover {
  background-color: var(--green-hover);
  color: var(--white);
}
.bg-yellow {
  background-color: var(--yellow);
  color: var(--purple);
}
.bg-yellow-hover {
  background-color: var(--yellow-hover);
  color: var(--purple);
}
.bg-facebook {
  background-color: var(--facebook);
  color: var(--white);
}
.bg-instagram {
  background-color: var(--instagram);
  color: var(--white);
}
.bg-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
}
.border-purple {
  border-color: var(--purple);
}
.border-magenta {
  border-color: var(--magenta);
}
.border-yellow {
  border-color: var(--yellow);
}
.border-green {
  border-color: var(--green);
}

/*OVERLAY POPUP*/

/* Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
/* Contenedor del popup */
.popup {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: aparecer 0.3s ease;
}
/* Botón cerrar fijo */
.popup .cerrar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  right: 0;
  align-self: flex-end;
  font-size: 22px;
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
}
/* Contenido con scroll */
.popup-body {
  overflow-y: auto;
  padding: 20px;
}
/* Animación */
@keyframes aparecer {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/*CUSTOM AOS*/

[data-aos="vending-products"] {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}
[data-aos="vending-products"].aos-animate {
  opacity: 1;
  transform: translateY(250px);
}
[data-aos="circle-progress-right"] {
  animation: none;
}
[data-aos="circle-progress-right"].aos-animate {
  animation: circle-progress 1.8s linear forwards;
}
[data-aos="circle-progress-left"] {
  animation: none;
}
[data-aos="circle-progress-left"].aos-animate {
  animation: circle-progress 1.5s linear forwards 1.8s;
}
