@font-face {
  font-family: "Roboto-Light";
  src: url("../roboto/Roboto-Light.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Roboto-Regular";
  src: url("../roboto/Roboto-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Roboto-Medium";
  src: url("../roboto/Roboto-Medium.ttf");
  font-display: swap;
}
@font-face {
  font-family: "Roboto-Bold";
  src: url("../roboto/Roboto-Bold.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Navidad";
  src: url("../navidad/Christmas_and_Santona.ttf");
  font-display: swap;
}
@font-face {
  font-family: "The Perfect Christmas";
  src: url("https://smartpromocionales.com/font/The-Perfect-Christmas.ttf");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  color: #111111;
  font-family: "Roboto-Light";
}

.container-nav {
  position: fixed;
  width: 100%;
  top: 3rem;

  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12%;
  height: 5rem;
  transition: all 0.5s ease;
  background: #eaeaea;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
#navidad {
  background-color: #022895;
  background-image: url("http://localhost/smart_url_amigable/banners/encabezado-navidad.gif");
  position: fixed;
  height: 60px;
  top: 8rem;
  width: 100%;
  z-index: 99;
}
.menu {
  display: flex;
  align-items: center;
}

.menu-item {
  padding-top: 30px;
  padding-bottom: 30px;
  /* margin-left: 1rem;
        margin-right: 1rem; */
  font-size: 15px;
  font-family: "Roboto-Light";
  border-right: 1px solid black;
  padding: 0 1rem;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item:first-child {
  border-right: none;
}

.submenu {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 999;
  top: 80px;
  transition: opacity 0.2s ease;
  height: auto;
  opacity: 0;
  visibility: hidden;
  background-color: #fff;
  /* overflow: hidden;
    transition: opacity 0.2s ease;
    display: none; */
}

.submenu .content {
  display: flex;
  justify-content: center;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.submenu .content .rows {
  padding: 30px 3%;
  min-height: 403px;
}

.submenu-item {
  margin-top: 18px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5rem;
}

.submenu-link {
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 16px;
  padding: 0;
  font-family: "Roboto-Medium";
}

.submenu-link:hover {
  color: #084892;
}

.burger {
  position: relative;
  display: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 2rem;
  margin-right: 10px;
  height: 1rem;
  opacity: 0;
  visibility: hidden;
  background: transparent;
}

.burger-line {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 3px;
  opacity: 1;
  border: none;
  outline: none;
  background: #111111;
}

.burger-line:nth-child(1) {
  top: 0px;
}

.burger-line:nth-child(2) {
  top: 0.5rem;
}

.burger-line:nth-child(3) {
  top: 1rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
  background-color: rgba(0, 0, 0, 0.65);
}

#resultado_busqueda {
  display: none;
  position: absolute;
  z-index: 99;
  overflow-x: hidden;
  overflow-y: scroll;
  height: 600px;
}

.span_movil {
  padding: 2rem 0.5rem;
  background-color: #084892;
  color: white;
  animation: parpadeo 2s infinite;
}

@keyframes parpadeo {
  25% {
    background-color: #084892; /* Azul */
  }
  25% {
    background-color: #15954a; /* Naranja */
  }
  100% {
    background-color: #084892; /* Azul */
  }
}

#navidad2 {
  height: 6rem;
  margin-top: 9rem;
  width: 100%;
  z-index: 99;
  text-align: center;
}

.title-word {
  font-family: "The Perfect Christmas";
  font-size: 5rem;
  animation: color-animation 4s linear infinite;
}

/* Definir los colores base */
.title-word-1 {
  --color-1: #22513f;
  /* Verde */
  --color-2: #bf8450;
  /* Naranja */
  --color-3: #8c031c;
  /* Rojo */
}

.title-word-2 {
  --color-1: #8c031c;
  /* Rojo */
  --color-2: #bf8450;
  /* Naranja */
  --color-3: #275942;
  /* Verde oscuro */
}

.title-word-3 {
  --color-1: #bf8450;
  /* Naranja */
  --color-2: #8c031c;
  /* Rojo */
  --color-3: #22513f;
  /* Verde */
}

.title-word-4 {
  --color-1: #bf8450;
  /* Naranja */
  --color-2: #8c031c;
  /* Rojo */
  --color-3: #22513f;
  /* Verde */
}

/* Animación tricolor */
@keyframes color-animation {
  0% {
    color: var(--color-1);
  }

  32% {
    color: var(--color-1);
  }

  33% {
    color: var(--color-2);
  }

  65% {
    color: var(--color-2);
  }

  66% {
    color: var(--color-3);
  }

  99% {
    color: var(--color-3);
  }

  100% {
    color: var(--color-1);
  }
}

/* Aplicar la animación a cada título */
.title-word-1 {
  animation: color-animation 3s infinite;
}

.title-word-2 {
  animation: color-animation 3s infinite;
}

.title-word-3 {
  animation: color-animation 3s infinite;
}

.title-word-4 {
  animation: color-animation 3s infinite;
}

@media only screen and (max-width: 992px) {
  .escritorio {
    display: none;
  }

  .fa-shopping-cart {
    font-size: 20px;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .span_movil {
    padding: 0;
  }

  .container-nav {
    padding: 0 5%;
  }

  .overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    background-color: #eaeaea;

    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }

  .navbar.active {
    left: 0rem;
    opacity: 1;
    visibility: visible;
  }

  .menu {
    display: block;
  }

  .menu-item {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 3.75rem 0 1.25rem;
    border-bottom: 1px solid #ffffff;

    line-height: 3.125rem;
  }

  .menu-item {
    border-right: none;
  }

  .menu {
    width: 100%;
    height: auto;
    padding: 1rem 0;
  }

  .menu-item {
    display: block;
    margin: 0 auto;
  }

  .menu-link {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
  }

  .burger {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .submenu {
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin: 0;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    background-color: #eaeaea;
  }

  .submenu .content {
    box-shadow: none;
    flex-direction: column;
    /*  padding: 20px 20px 0 20px; */
    z-index: 999;
  }

  .submenu {
    position: relative;
    top: -0.5rem;

    width: 100%;
    max-height: 0;
    padding: 0px;
    border: none;
    outline: none;
    opacity: 1;
    overflow: hidden;
    visibility: visible;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .submenu .content .rows {
    padding: 0;
    min-height: 0;
  }

  .submenu-item {
    border-bottom: thin solid white;
    padding: 0;
    margin: 0;
  }

  #navidad2 {
    margin-top: 6rem;
  }
  .title-word {
    font-size: 3.5rem;
  }
}

@media only screen and (max-width: 1279px) {
  .container-nav {
    top: 0rem;
  }

  #navidad {
    top: 5rem;
  }
}

@media only screen and (min-width: 993px) {
  .menu-dropdown:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  .movil {
    display: none;
  }
}



@media only screen and (min-width: 1280px) {
  .container-nav {
    padding: 0 1%;
  }

  .pleca {
    padding: 0 1%;
  }
}

@media only screen and (min-width: 1420px) {
  .container-nav {
    padding: 0 5%;
  }
}

@media only screen and (min-width: 1920px) {
  .container-nav {
    padding: 0 12%;
  }
}
