@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

.carrito-container {
  position: relative;
}

#carrito {
  display: none; /* Oculto por defecto */
  position: fixed; /* Fijo en la pantalla */
  right: 0;
  top: 50px;
  background: #fff;
  width: 300px;
  border: 1px solid #ddd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 12px;
  z-index:9999;; /* Más alto que el header */
}

#carrito.mostrar {
  display: block;
}

.oculto {
  display: none;
}

/* ----- HEADER ----- */

.menu {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999; /* para que esté encima de todo */
  background-color: rgba(255, 255, 255, 0.9); /* blanco con un poco de transparencia */
  backdrop-filter: blur(10px); /* efecto difuminado */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  height: 70px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* sombrita abajo */
}
/* ----- CARRITO ----- */
/* 🛒 Estilos para el carrito */



.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  background: linear-gradient(135deg, #ffe0e9, #ffc1d3);
}

.logo {
  font-size: 28px;
  color: #ff69b4;
  font-weight: 800;
  text-transform: uppercase;
}

.logo span {
  color: #ff1493; /* Rosa más fuerte */
}

.navbar ul {
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  font-size: 18px;
  color: #ff69b4;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}


.navbar ul li a:hover {
  background: #ff69b4;
  color: #fff;
}

/* Oculta el menú hamburguesa en escritorio */
.menu-icono,
#menu {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

header {
  position: fixed; /* Header fijo */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500; /* Menor que el carrito */
}

.menu {
  z-index: 9999; /* Por si el menú está dentro del header */
}


body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffe0e9, #ffc1d3);
  color: #333;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
/* Contenedor izquierdo y derecho del header */
.header-left,
.header-right {
  flex: 1; /* Ambos ocupan la mitad del ancho */
}
.header-content {
  display: flex;
  flex: 1;
  width: 100%;
  margin-top: 70px; /* <-- Ajusta al alto de tu barra fija */
}


.header-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-right h1 {
  font-size: 3rem;
  color: #ff1493;
  margin-bottom: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-right h1 {
  font-size: 3rem;
  color: #ff1493;
  margin-bottom: 15px;
  font-weight: 800;
}

.header-right p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 25px;
}
.btn-header {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ff69b4;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-header:hover {
  background-color: #ff1493;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  .header-left,
  .header-right {
    width: 100%;
    height: 50vh;
  }
  .navbar ul {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
  }
}

.btn-1,
.btn-1:hover {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-1 {
  background-color: #fff;
  color: #ff69b4;
}

.btn-1:hover {
  background-color: #ff69b4;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ----- HEADER ----- */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh; /* la mitad de la pantalla */
  background: linear-gradient(to right, #ff91af, #ffc1d3);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}


/* ----- HEADER CONTENT ----- */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 30px;
  z-index: 1;
}

.header-txt {
  max-width: 600px;
}

.header-txt h1 {
  font-size: 4rem; /* Más grande */
  background: linear-gradient(90deg, #ff69b4, #ff1493); /* Degradado rosa */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Degradado en texto */
  text-shadow: 2px 2px 10px rgba(255, 105, 180, 0.7); /* Brillo rosa */
  font-weight: 900; /* Más grueso */
  letter-spacing: 2px; /* Separación entre letras */
  animation: resplandor 1.5s infinite alternate; /* Animación */
}

@keyframes resplandor {
  0% {
    text-shadow: 2px 2px 10px rgba(255, 105, 180, 0.5);
  }
  100% {
    text-shadow: 2px 2px 20px rgba(255, 20, 147, 1);
  }
}

.header-txt p {
  font-size: 1.2rem;
  color: #fff8f8;
  margin-bottom: 25px;
}

.btn-1,
.btn-2 {
  display: inline-block;
  padding: 12px 30px;
  background-color: #fff;
  color: #ff69b4;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-1:hover,
.btn-2:hover {
  background-color: #ff69b4;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* ----- OFERTAS ----- */
.ofert {
  padding: 50px 0;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.ofert-1 {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ofert-1:hover {
  transform: scale(1.03);
}

.ofert-txt h3 {
  font-size: 1.4rem;
  margin-top: 15px;
  color: #ff69b4;
}

/* ----- PRODUCTOS ----- */
.products {
  padding: 50px 0;
  
}

.products h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
}

.product-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
}

.product h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #ff69b4;
}

.precio {
  font-weight: bold;
  color: #333;
}
/* ----- BLOG (PARTE ABAJO) ----- */
.blog {
  display: flex;
  justify-content: space-between; /* Alinea las 3 horizontal */
  gap: 20px; /* Espacio entre ellas */
  margin: 50px auto;
  flex-wrap: wrap; /* Para que se adapten en móviles */
}

.blog-1 {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 30%; /* Las 3 en una fila */
}

.blog-1 img {
  border-radius: 10px;
  margin-bottom: 15px;
}

/* ----- FOOTER ----- */
.footer {
  background: #111;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

.link h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.link a {
  color: #dcdcdc;
  display: block;
  margin: 5px 0;
  transition: color 0.3s;
}

.link a:hover {
  color: #fff;
}

/* ----- REDES SOCIALES ----- */
.social-icons {
  text-align: center;
  margin: 30px 0;
}

.social-icons .icons i {
  font-size: 40px;
  color: #ff69b4;
  margin: 0 15px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons .icons i:hover {
  transform: scale(1.3) rotate(10deg);
  color: #ff1493;
}

/* ----- MODAL ----- */
.modal {
  display: none; /* Oculta el modal por defecto */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
  backdrop-filter: blur(3px); /* Difumina un poco el fondo */
  align-items: center;
  justify-content: center;
}

.modal-contenido {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  width: 90%;
  max-width: 400px; /* Tamaño pequeño y centrado */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-contenido h2 {
  font-size: 1.8rem;
  color: #ff69b4;
  margin-bottom: 15px;
}

.modal-contenido p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
}

.modal-contenido .cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  color: #ff69b4;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-contenido .cerrar:hover {
  color: #ff1493;
}
.btn-2 {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ff69b4, #ff1493); /* Degradado rosa */
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(255, 20, 147, 0.4);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
  transition: all 0.5s ease;
}

.btn-2:hover {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.6);
}

.btn-2:hover::before {
  opacity: 1;
  width: 400%;
  height: 400%;
}

.mensaje-carrito {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0; /* Oculto por defecto */
  pointer-events: none;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  z-index: 9999;
}

.mensaje-carrito.mostrar {
  opacity: 1;
  bottom: 50px; /* Sube al aparecer */
}

.mensaje-carrito.añadido {
  background: linear-gradient(135deg, #4caf50, #81c784); /* Verde para añadir */
}

.mensaje-carrito.eliminado {
  background: linear-gradient(135deg, #f44336, #e57373); /* Rojo para eliminar */
}