/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body modo día y modo oscuro */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #000;
  transition: background-color 0.5s, color 0.5s;
}

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}
body.dark-mode  p{
  color: #000000;
}
/* Logo en navbar */
.logo-img {
  width: 200px;   /* Ajusta el tamaño horizontal */
  height: auto;   /* Mantiene la proporción */
  margin-right: 20px; /* Espacio entre imagen y texto */
}

/* Navbar */


.navbar {
  display: flex;
  justify-content: space-between; /* logo a la izquierda, toggle a la derecha */
  align-items: center;            /* alinea verticalmente */
  padding: 15px 2rem;
  background: #000;
  color: white;
  position: relative;
}
/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 25px;
  background: none;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

/* Menú desplegable animado */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li {
  list-style: none;
  padding: 1rem;
}


@media (max-width: 768px) {
  .logo-img {
    width: 130px;  /* Logo más pequeño */
    margin-right: 10px;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1rem;
  }

  .menu-toggle {
    display: flex; /* Mostrar botón hamburguesa */
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none; /* Ocultar links por defecto */
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #000;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1rem;
    text-align: center;
  }
}
/* Animación opcional */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/**/
.nav-links a {
  position: relative;
  font-size: 18px;
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  color: rgb(187, 186, 186); /* o #e1e1e1 según prefieras */
  text-decoration: none;
  transition: color 0.3s ease; /* o el otro valor, pero no ambos */
}


.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 400ms cubic-bezier(0.25, 0.8, 0.25, 1), left 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
  left: 0%;
  
}


/* Contenedor toggle modo oscuro en navbar, posicionado a la derecha */
/* From Uiverse.io by prikshit_1236 */ 
.theme-toggle-wrapper {
  margin-left: auto;     /* empuja el toggle al extremo derecho */
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 80px;           /* tamaño más compacto */
  height: 30px;
}
.theme-toggle-wrapper .toggle-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
  transform: scale(1.2);
  transition: transform 0.2s;
}

.theme-toggle-wrapper .toggle-switch:hover {
  transform: scale(1.3);
}

.theme-toggle-wrapper .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-wrapper .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, #f1c40f, #f39c12);
  transition: 0.4s;
  border-radius: 34px;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.theme-toggle-wrapper .slider:before {
  position: absolute;
  content: "☀️";
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.theme-toggle-wrapper input:checked + .slider {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  box-shadow: 0 0 15px rgba(44, 62, 80, 0.5);
}

.theme-toggle-wrapper input:checked + .slider:before {
  transform: translateX(40px);
  content: "🌙";
}

.theme-toggle-wrapper .clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.theme-toggle-wrapper .cloud {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.theme-toggle-wrapper .cloud1 {
  top: 10px;
  left: 10px;
  animation: floatCloud1 8s infinite linear;
}

.theme-toggle-wrapper .cloud2 {
  top: 15px;
  left: 40px;
  transform: scale(0.8);
  animation: floatCloud2 12s infinite linear;
}

@keyframes floatCloud1 {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(80px);
    opacity: 0;
  }
}

@keyframes floatCloud2 {
  0% {
    transform: translateX(-20px) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(80px) scale(0.8);
    opacity: 0;
  }
}

.theme-toggle-wrapper input:checked + .slider .cloud {
  opacity: 0;
  transform: translateY(-20px);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-wrapper .cloud {
    animation: none;
  }
}


/* Opcional: estilos productos */
.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.producto {
  background: #ececec;
  border-radius: 12px;
  padding: 1rem;
  width: 260px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.nombre {
  font-size: 1rem;
  font-weight: bold;
}

.precio {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #333;
}

.acciones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .producto {
    width: calc(50% - 1rem); /* 2 productos por fila con espacio */
  }
}

/* From Uiverse.io by doniaskima */ 
.btn-53,
.btn-53 *,
.btn-53 :after,
.btn-53 :before,
.btn-53:after,
.btn-53:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-53 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  line-height:0.75;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  padding: 0;
}

.btn-53:disabled {
  cursor: default;
}

.btn-53:-moz-focusring {
  outline: auto;
}

.btn-53 svg {
  display: block;
  vertical-align: middle;
}

.btn-53 [hidden] {
  display: none;
}

.btn-53 {
  border: 1px solid;
  border-radius: 999px;
  box-sizing: border-box;
  display: block;
  font-weight: 900;
  overflow: hidden;
  padding: 1.2rem 3rem;
  position: relative;
  text-transform: uppercase;
}

.btn-53 .original {
  background: #fff;
  color: #000;
  display: grid;
  inset: 0;
  place-content: center;
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}

.btn-53:hover .original {
  transform: translateY(100%);
}

.btn-53 .letters {
  display: inline-flex;
}

.btn-53 span {
  opacity: 0;
  transform: translateY(-15px);
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.btn-53 span:nth-child(2n) {
  transform: translateY(15px);
}

.btn-53:hover span {
  opacity: 1;
  transform: translateY(0);
}

.btn-53:hover span:nth-child(2) {
  transition-delay: 0.1s;
}

.btn-53:hover span:nth-child(3) {
  transition-delay: 0.2s;
}

.btn-53:hover span:nth-child(4) {
  transition-delay: 0.3s;
}

.btn-53:hover span:nth-child(5) {
  transition-delay: 0.4s;
}

.btn-53:hover span:nth-child(6) {
  transition-delay: 0.5s;
}

/*carrito de compras*/
.top-bar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-icon {
  font-size: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

 /* From Uiverse.io by satyamchaudharydev */ 
/* === removing default button style ===*/
.button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

/* button styling */
.button {
  --border-right: 6px;
  --text-stroke-color: rgb(0, 0, 0);
  --animation-color: #38fff5;
  --fs-size: 2em;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Arial";
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}
/* this is the text, when you hover on button */
.hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}
/* hover */
.button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color))
}
@media (max-width: 768px) {
  .producto {
    width: calc(50% - 1rem); /* 2 productos por fila */
  }
}

@media (max-width: 480px) {
  .producto {
    width: 100%; /* 1 producto por fila */
  }

  .button {
    --fs-size: 1.5em; /* Reduce el tamaño del texto del botón */
  }
}

footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
/* From Uiverse.io by javierBarroso */ 
.social-login-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-box-reflect: below 5px linear-gradient(transparent, #00000055);
}
.social-login-icons svg {
  width: 40px;
}


.social-icon-2,
.social-icon-2-2,
.social-icon-3,
.social-icon-3-3{
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  margin: 20px 0 0px 0;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Estilo de cada contenedor de ícono */
.socialcontainer {
  height: 80px;
  overflow: hidden;
}


.social-icon-2 svg,
.social-icon-3 svg
 {
  opacity: 0;
  transition-duration: 0.5s;
  transition-delay: 0.2s;
}



.socialcontainer:hover .social-icon-2 svg,
.socialcontainer:hover .social-icon-3 svg{
  opacity: 1;
}
.social-icon-2 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: linear-gradient(
    72.44deg,
    #ff7a00 11.92%,
    #ff0169 51.56%,
    #d300c5 85.69%
  );
}
.socialcontainer:hover .social-icon-2 {
  transform: translateY(-70px);
}
.social-icon-3 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #316ff6;
}

.socialcontainer:hover .social-icon-3 {
  transform: translateY(-70px);
}
