/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  background-color: rgb(247, 245, 242);
}

h1,
h2,
p {
  margin: 0;
}

p {
  padding: 10px;
}

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

a {
  text-decoration: none;
}

#mid-content {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: end;
  position: relative;
  margin-left: 20px;
  flex-grow: 1;
  margin-right: 20px;
  overflow: hidden;
}

#cart-icon {
  font-size: 2.0rem;
  border-radius: 20px;
  padding: 5px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

#login_button {
  background-color: #f8f9f8;
  color: rgb(43, 45, 45);
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-wrap: nowrap;
}

#login_button:hover {
  background-color: #c4c6c3;
}

#end_content {
  display: flex;
  gap: 20px;
}

.bd-grid {
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  height: 50px;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(30deg, rgb(120, 140, 150), rgb(211, 219, 211), rgb(120, 146, 150));
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

#logo {
  margin-left: -15px;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 2000px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    max-width: 1000px;
    border-radius: 20px;
    height: 90%;
    overflow-y: scroll;
    padding: 2.5rem;
    background: linear-gradient(30deg, rgb(120, 140, 150), rgb(211, 219, 211), rgb(120, 146, 150));
    transition: 0.8s;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: rgb(0, 0, 0);
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: yellow;
}

.nav__logo {
  color: var(--second-color);
  margin-left: 40px;
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 15px;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: yellow;
}

/*=== Show menu ===*/
.show {
  right: 0;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: end;
  flex-wrap: wrap;
  position: relative;
  height: 80vh;
  filter: brightness(90%);
  overflow: hidden;
  /* Hide overflow for animations */
}

.slider {
  bottom: -100%;
  position: relative;
  width: 100%;
  /* Set your desired width */
  height: 80vh;
  /* Set your desired height */
  overflow: hidden;
  /* Hide overflow */
  animation: slideIn 1s forwards;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Ensure the background covers the element */
  background-position: center;
  /* Center the background image */
  opacity: 0;
  /* Start hidden */
  transition: opacity 0.5s ease-in-out;
  /* Smooth transition for opacity */
}

.slide.loaded {
  opacity: 1;
  /* Show the slide when loaded */
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  position: absolute;
  backdrop-filter: blur(0.1px);
  /* Button color */
  background: rgba(254, 252, 252, 0.2);
  color: rgb(4, 0, 11);
  top: 25%;
  /* Center vertically */
  transform: translateY(-50%);
  /* Adjust for centering */
  opacity: 0;
  /* Start invisible */
  animation: fadeInUp 1s forwards 1s;
  /* Animation for the text */
}

@keyframes slideIn {
  to {
    bottom: 0;
    /* Move to the top */
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    /* Start invisible */
    transform: translateY(20px);
    /* Start slightly below */
  }

  100% {
    opacity: 1;
    /* Fully visible */
    transform: translateY(0);
    /* Move to original position */
    font-size: larger;
    /* Scale up the text */
  }
}

.oneline {
  display: flex;
  justify-content: space-evenly;
}

.cta-button {
  backdrop-filter: blur(15px);
  /* Button color */
  background: rgba(86, 172, 228, 0.3);
  color: rgb(235, 17, 17);
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 10px;
  margin: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}


main {
  padding: 20px;
}

#content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info {
  text-align: center;
  margin: 20px 0;
  height: 130px;
  overflow: hidden;
  border-radius: 20px;
  width: 98%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.HERO,
.support {
  height: min-content;
  text-align: center;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 20px;
  width: 98%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Space between items */
  padding: 20px;
  max-width: 1000px;
  /* Set a max width for the container */
  margin: auto;
  /* Center the container */
  border-radius: 8px;
  overflow: hidden;
  align-items: center;

}

.responsive-image {
  width: 100%;
  max-width: 280px;
  /* Make the image responsive */
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 8px;
  /* Optional: round the corners */
}

.text-content {
  width: 100%;
}

@media (min-width: 600px) {
  .container {
    grid-template-columns: 1fr 1fr;
    /* Two columns on larger screens */
  }
}

#SERVICE {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services {
  padding: 20px;
  text-align: center;
  margin: 20px 0px;
  background-color: white;
  width: 98%;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.support {
  word-wrap: break-word;
  padding: 20px;
  text-align: start;
}

#ocd {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.card {
  background: linear-gradient(180deg, rgb(218, 247, 248), rgb(250, 225, 225));
  /* Light background for cards */
  border: 1px solid #ddd;
  /* Light border */
  border-radius: 10px;
  /* Rounded corners */
  margin: 10px;
  width: 220px;
  height: 200px;
  /* Fixed width for cards */
  perspective: 1000px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.3s, box-shadow 0.3s, opacity 1s;
  /* Smooth hover effect */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.card:hover .card-front {
  opacity: 0;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: small;
}

.card-front {
  border-radius: 10px;
  background-size: cover;
  filter: brightness(80%);
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #feffff;
  font-size: 20px;
  font-weight: bold;
  transition: opacity 0.5s ease;
}

.card-back {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  font-size: 0.9rem;
}

.card:hover .card-back {
  opacity: 1;
}

.card:hover,
.cta-button:hover {
  transform: translateY(-2px);
  /* Elevate the card */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  /* Increase shadow on hover */
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.readmore {
  display: flex;
  width: 100%;
  justify-content: center;
}

#rmb {
  color: blue;
  border: none;
  margin-top: -15px;
  padding: 10px;
  background: white;
  border-radius: 10px;
}

#front {
  background: white;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#rmb:hover {
  background: rgb(109, 105, 105);
  color: white;
}

.link {
  width: 60%;
  padding: 10px 20px;
  background-color: #3498db;
  /* Button color */
  color: black;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.link:hover {
  background-color: #53b5f7;
  /* Darker button color on hover */
}

#footer {
  background: linear-gradient(30deg, rgb(120, 140, 150), rgb(211, 219, 211), rgb(120, 146, 150));
  color: rgb(4, 66, 117);
  text-align: center;
  padding: 10px;
  width: 100%;
}

#footer,
h3 {
  margin: 0 0 10px;
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 3rem;
  color: #013766;
  margin: 0 var(--mb-2);
}

.footer__icon:hover,
#cont:hover {
  color: #060606;
  /* Change color on hover */
}

#foot {
  margin-top: -20px;
}

strong,
h3,
#foot {
  color: rgb(0, 0, 0);
}

#cont {
  color: #003c86;
}

@media (max-width: 500px) {
  #login_button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
  }
  
  #mid-content {
    margin-right: 5px;
  }

  #end_content {
    gap: 10px;
  }
  
  #nav-toggle{
    margin-right: 0px;
  }

  .site_name {
    display: flex;
    flex-wrap: wrap;
    margin-left: 5px;
  }


}


/*===== WALLET BALANCE =====*/
.wallet-balance {
  position: fixed;
  color: black;
  top: 50px;
  right: 30px;
  background: linear-gradient(30deg, rgb(120, 140, 150), rgb(236, 234, 234), rgb(120, 146, 150));
  padding: 10px;
  border: none;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1000;
}

/* cart item count */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
}