@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');




 	html {
		font-size: 62.5%;
		font-family: 'Poppins', sans-serif;
	}

	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

    body {
        background: #020140;
    }

    .contenedor {
        max-width: 120rem;
		margin: 0 auto;
    }

 	.contenedor-hero {
		background-color: #fff;
	}

    .hero {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 0;
    }

        .fa-car-side {
        display: inline-block;
        animation: entrarCarro 2s ease-out forwards;
    }
    

@keyframes entrarCarro {
  0% { transform: translateX(-200px) rotate(-10deg); opacity: 0; }
  60% { transform: translateX(20px) rotate(3deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0); }
}
   
.logo a {
  position: relative;
  color: #e60000; /* rojo navideño */
  font-weight: bold;
  text-decoration: none;
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 
      0 0 12px #ff3b3b,
      0 0 25px #ff0000,
      0 0 40px #ff6b00;
  animation: parpadeoNavidad 1.8s infinite, flotarNavidad 3s ease-in-out infinite;
  transition: 0.3s;
  display: inline-block;
}

.logo a:hover {
  color: #0aff0a; /* verde fuerte navideño */
  text-shadow: 
      0 0 18px #ffffff,
      0 0 30px #0aff0a,
      0 0 50px #00ff48;
  transform: scale(1.05);
}



/* ===========================
   🎅 GORRO DE NAVIDAD (AJUSTADO)
=========================== */

.icono-navidad {
  position: relative;
  display: inline-block;
}

/* Parte roja (más pequeña) */
.icono-navidad::before {
  content: "";
  position: absolute;
  top: -22px;
  left: -6px;
  width: 38px;
  height: 22px;
  background: #d60000;
  border-radius: 10px 10px 0 0;
  transform: rotate(-15deg);
  z-index: 5;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.7);
}

/* Banda blanca más fina */
.icono-navidad::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -10px;
  width: 48px;
  height: 10px;
  background: #fff;
  border-radius: 8px;
  transform: rotate(-15deg);
  z-index: 6;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Bolita pequeña */
.icono-navidad .pom {
  position: absolute;
  top: -2px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  z-index: 7;
}


/* ===========================
   ✨ ANIMACIONES NAVIDEÑAS
=========================== */

@keyframes parpadeoNavidad {
  0%, 100% { color: #ff0000; text-shadow: 0 0 12px #ff3b3b; }
  25% { color: #0aff0a; text-shadow: 0 0 12px #00ff2a; }
  50% { color: #ffd700; text-shadow: 0 0 15px #ffdd55; }
  75% { color: #ff6b00; text-shadow: 0 0 18px #ff6b00; }
}

@keyframes flotarNavidad {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}



/* ---------- Soporte al cliente ---------- */
.Soporte-Cliente {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.Soporte-Cliente i {
  font-size: 3.3rem;
}

.Contenido-Soporte-Cliente {
  display: flex;
  flex-direction: column;
  font-size: 1.3rem;
  font-weight: bold;
}
    .contenedor-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .contenedor-logo i {
        font-size: 3rem;
    }

    .contenedor-logo h1 a {
        text-decoration: none;
        color: #000;
        font-size: 3rem;
        text-transform: uppercase;
        letter-spacing: -1px;
    }


    .contenedor-logo .logo a {
        position: relative;
        display: inline-block;
        color: #000;
        text-decoration: none;
        font-weight: bold;
    }

    .contenedor-logo .logo a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #1234f3;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .contenedor-logo .logo a:hover:after {
        transform: scaleX(1);
    }

    .contenedor-user {
		display: flex;
		gap: 1rem;
		cursor: pointer;
	}

	.contenedor-user .fa-user {
		font-size: 3rem;
		color: var(--primary-color);
		padding-right: 2.5rem;
		border-right: 1px solid #e2e2e2;
	}


    .contenedor-navbar {
        background-color: #043e6e;

    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    .navbar .fa-bars {
        display: none;
    }

    .menu {
        display: flex;
        gap: 2rem;
    }

    .menu li {
        list-style: none;
    }

    .menu a {
	    text-decoration: none;
	font-size: 1.4rem;
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	position: relative;
	transition: color 0.3s ease;
}

	.menu a::after {
		content: '';
		width: 1.5rem;
		height: 1px;
		background-color: #fff;
		position: absolute;
		bottom: -3px;
		left: 50%;
		transform: translate(-50%, 50%);
		opacity: 0;
		transition: all 0.3s ease;
	}    

    .menu a:hover::after {
        opacity: 1;
    }

    .menu a:hover {
        color: #fff
    }

	.search-form {
		position: relative;
		display: flex;
		align-items: center;
		border: 2px solid #fff;
		border-radius: 2rem;
		background-color: #fff;
		height: 4.4rem;
		overflow: hidden;
	}

	.search-form input {
		outline: none;
		font-family: inherit;
		border: none;
		width: 25rem;
		font-size: 1.4rem;
		padding: 0 2rem;
		color: #777;
		cursor: pointer;
	}   
    
	.search-form input::-webkit-search-cancel-button {
		appearance: none;
	}    

    .search-form .boton-buscar {
		border: none;
		background-color: #043e6e;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
		padding: 1rem;
    }

    .boton-buscar i {
        font-size: 2rem;
        color: #fff
    }

.background {
    width: 100%;
    height: 100vh;
    background: url("/img/banner2.jpg") no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
}

.Contenedor{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 550px;
    background: url("/img/banner2.jpg") no-repeat;
    background-position: center;
    border-radius: 10px;
    margin-top: 20px;
}

.Contenedor .Contenido {
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    background: transparent;
    padding: 80px;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.Contenido .logo {
    font-size: 30px;
}

.text-sci h2 {
    font-size: 40px;
    line-height: 1;
}

.text-sci h2 span {
    font-size: 25px;
}

.text-sci p {
    font-size: 16px;
    margin: 20px 0;
    font-style: italic;
    font-weight: bold;
}  

.social-iconos a i {
    font-size: 22px;
    color: white;
    margin-right: 10px;
    transition: .5s ease;
}

.social-iconos a:hover i {
    transform: scale(1.2);
}

.Contenedor .logreg-box {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 58%);
    height: 100%;
    overflow: hidden;
    
}

.logreg-box .form-box {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    color: white;
}

.logreg-box .form-box.login {
    transform: translateX(0);
    transition: .6s ease;
    transition-delay: .7s;
}

.logreg-box.active .form-box.login{
    transform: translateX(600px);
    transition-delay: 0s;
}

.logreg-box .form-box.register{
    transform: translateX(700px);
    transition: transform .6s ease;
    transition-delay: 0s;
}

.logreg-box.active .form-box.register{
    transform: translateX(0);
    transition-delay: .7s;
}

.form-box h2 {
    font-size: 32px;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 340px;
    height: 50px;
    border-bottom: 2px solid white;
    margin: 30px 0;
} 

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: white; 
    font-weight: 500;
    padding-right: 28px;
}

.input-box label {
   position: absolute;
   top: 50%;
   left: 0;
   transform: translateY(-50%);
   font-size: 16px;
   font-weight: 500;
   pointer-events: none;
   transition: .5s ease;
   
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}


.input-box .icon {
    position: absolute;
    top: 13px;
    right: 0;
    font-size: 19px;
}

.form-box .remember-forgot {
    font-size: 14.5px;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input {
   accent-color: white;
   margin-right: 3px;
   margin-top: 15px;
}

.remember-forgot a {
    color: white;
    text-decoration: none;
    margin-left: 13px;
    margin-top: 14px;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background: skyblue;
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0,0,0, .5);
}

.form-box .login-register {
    font-size: 14.5px;
    font-weight: 500;
    text-align: center;
    margin: 25px
}

.login-register p a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}

body {
  transition: opacity 0.5s ease;
}

body.fade-out {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(3px);
}


#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fondo, #0a0a0a); 
  color: var(--color-principal, #f8f8f8); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-acento, #ff7f00); 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .navbar .fa-bars {
    display: block;
  }

  .navbar .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* ajusta según la altura de tu navbar */
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .navbar .menu.show {
    display: flex;
  }

  .navbar .menu li {
    text-align: center;
    padding: 10px 0;
  }

  .navbar .menu li a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
  }

  .hero {
    padding: 2rem;
  }

}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .hero {
    padding: 2rem;
  }

  .Soporte-Cliente {
    display: none;
  }



  .navbar .fa-bars {
    display: block;
    font-size: 3rem;
    color: #fff
  }


  .menu {
    display: none;
  }
 
  .Contenido-banner {
    max-width: 50rem;
    margin: 0 auto;
    padding: 25rem 0;
  }

  .Contenedor-categorias

  .heading-1 {
    font-size: 2.5rem;
  }

  .carta-categoria {
    height: 12rem;
  }

  .carta-categoria p {
    font-size: 2rem;
    text-align: center;
    line-height: 1;
  }

  .carta-categoria span {
    font-size: 1.4rem;
  }

  .Contenedor-opcion {
    align-items: center;
  }

  .Contenedor-opcion span {
    text-align: center;
    padding: 1rem 2rem;
  }

  .Contenedor-productos {
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  }

  .gallery {
    grid-template-rows: repeat(2, 15rem);
  }

  .Contenedor-blogs {
    overflow: hidden;
    grid-template-columns: 1fr 1fr;
    height: 52rem;
  }

  .menu-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .copyright {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

}

@media (max-width: 468px) {
    html {
        font-size: 42.5%;
    }
}


  



/* ----------------------------------------------------------------------------------
 * PARA CELULARES Y PANTALLAS PEQUEÑAS (MENOR A 768PX)
 * ---------------------------------------------------------------------------------- */
@media (max-width: 767px) {

    /* Fondo con menos desenfoque para que no afecte tanto en móviles */
    .background {
        height: 100vh;
        min-height: 100vh;
        filter: blur(5px);
    }

    /* Contenedor: no más margenes negativos */
    .Contenedor {
        width: 90%;
        min-height: 500px;
        margin-top: 100px;
        display: flex;
        flex-direction: column;
    }

    /* El contenido no se muestra en esta vista */
    .Contenedor .Contenido {
        display: none;
    }

    /* Logreg-box: se ajusta para ocupar todo el espacio */
    .Contenedor .logreg-box {
        width: 100%;
        min-height: 400px;
        padding: 20px; /* Espaciado para que el contenido no se quede pegado */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logreg-box .form-box {
        width: 100%; /* Se asegura de ocupar todo el ancho disponible */
        padding: 40px 20px;
        border-radius: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Caja de inputs */
    .form-box .input-box {
        width: 100%;
        max-width: 320px;
        margin: 15px auto;
        height: 40px;
    }

    /* Transiciones del formulario */
    .logreg-box.active .form-box.login {
        transform: translateX(100%);
        transition: transform .6s ease;
    }

    .logreg-box .form-box.register {
        transform: translateX(100%);
        transition: transform .6s ease;
    }

    .logreg-box.active .form-box.register {
        transform: translateX(0);
        transition-delay: .7s;
    }

    /* Tipografía */
    .text-sci h2 {
        font-size: 24px;
    }

    .text-sci h2 span {
        font-size: 18px;
    }

    .text-sci p {
        font-size: 14px;
    }
}

/* ----------------------------------------------------------------------------------
 * PARA TABLET Y PANTALLAS MEDIANAS (768PX Y MÁS)
 * ---------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .Contenedor {
        position: relative;
        margin-top: -100px;
        width: 85%;
        max-width: 1000px;
        min-height: 500px; /* Usamos min-height para mantener la flexibilidad */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap; /* Permite que los elementos se acomoden mejor en filas */
        justify-content: center; /* Asegura que los elementos estén centrados */
        margin-bottom: 40px; /* Añadimos espacio en la parte inferior para cuando el celular se voltee */
    }


    /* El contenido ocupa la mitad de la pantalla */
    .Contenedor .Contenido {
        display: flex;
        width: 50%;
        padding: 60px 30px;
        background: transparent;
    }

    /* Logreg-box ocupa la otra mitad */
    .Contenedor .logreg-box {
        width: 50%;
        min-height: 400px;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logreg-box .form-box {
        width: 100%;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
    }

    .form-box .input-box {
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
        height: 40px;
    }

    /* Transiciones */
    .logreg-box.active .form-box.login {
        transform: translateX(100%);
        transition: transform .6s ease;
    }

    .logreg-box .form-box.register {
        transform: translateX(100%);
        transition: transform .6s ease;
    }

    .logreg-box.active .form-box.register {
        transform: translateX(0);
        transition-delay: .7s;
    }

    /* Tipografía */
    .text-sci h2 {
        font-size: 32px;
    }
}

/* ----------------------------------------------------------------------------------
 * PARA ESCRITORIO Y PANTALLAS GRANDES (1024PX Y MÁS)
 * ---------------------------------------------------------------------------------- */
@media (min-width: 1024px) {

    /* Contenedor: Centramos y ajustamos el layout para pantallas grandes */
    .Contenedor {
        position: relative;
        margin-top: -500px;
        transform: translate(-50%, -50%);
        width: 75%;
        height: 550px;
        max-width: 1200px;
        flex-direction: row;
    }

    /* Contenido ocupa el 58% del ancho */
    .Contenedor .Contenido {
        display: flex;
        position: absolute;
        width: 58%;
        padding: 80px;
    }

    /* Logreg-box ocupa el 42% restante */
    .Contenedor .logreg-box {
        position: absolute;
        top: 0;
        right: 0;
        width: 42%;
        height: 100%;
        overflow: hidden;
    }

    .logreg-box .form-box {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-box .input-box {
        width: 100%;
        max-width: 320px;
        margin: 15px auto;
        height: 40px;
    }

    /* Transiciones */
    .logreg-box.active .form-box.login {
        transform: translateX(600px);
    }

    .logreg-box .form-box.register {
        transform: translateX(700px);
        transition: transform .6s ease;
    }

    .logreg-box.active .form-box.register {
        transform: translateX(0);
        transition-delay: .7s;
    }

    /* Tipografía */
    .text-sci h2 {
        font-size: 40px;
    }

    .text-sci h2 span {
        font-size: 25px;
    }
}

/* ===== FIX GLOBAL DEL NAV ===== */
.navbar .menu {
  display: flex;
}

@media (max-width: 768px) {

  /* Mostrar icono hamburguesa */
  .navbar .menu-icon {
    display: block;
    font-size: 28px;
    cursor: pointer;
    z-index: 2001;
  }

  /* Ocultar menú en móvil */
  .navbar .menu {
    display: none !important; /* fuerza ocultar */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2000;
  }

  /* Mostrar menú cuando se activa */
  .navbar .menu.show {
    display: flex !important; /* fuerza mostrar */
  }
}

/* Overlay */
.menu-overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  transition: 0.3s;
  z-index: 1500;
}

.menu-overlay.show {
  visibility: visible;
  opacity: 1;
}

