/* === GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primario: #ef5579;
  --color-secundario: #ffd6e1;
  --color-fondo: #fff0f5;
  --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--fuente-principal);
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  padding: 0.5rem 1rem;
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #d44870;
}

footer {
  background-color: var(--color-primario);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ✅ Estilo visual del contenedor de usuario logueado */
#usuario-logueado {
  display: none;
  align-items: center;
  gap: 40px; /* ✔️ Más separación visual */
  color: white;
  font-weight: bold;
}


#usuario-logueado span {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

#usuario-logueado button {
  background-color: white;
  color: #ef5579;
  border: none;
  padding: 6px 14px; /* ← más espacio interno */
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}


#usuario-logueado button:hover {
  background-color: #f9b3c5;
}

.favorito-wrapper {
  margin-top: 8px;
  text-align: center;
}

.btn-favorito {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-favorito:focus {
  outline: none;
}

.boton-carrito-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ef5579;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 1.2rem;
}



/* Estilo general */
.header-publico {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ef5579;
  padding: 0.5rem 1rem;
}

.logo img {
  height: 50px;
}

/* Botón hamburguesa oculto por defecto */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Navbar en pantallas grandes */
@media (max-width: 1000px) {
  .header-publico {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
  }


  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 1001;
  }

  .nav-links {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px; /* ✅ Cambiamos este valor si hace falta */
  background-color: #ef5579;
  padding: 1rem 0;
  z-index: 1000;
  border-radius: 0 0 0 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


 .nav-links.active {
  display: block;
}


  .nav-links ul {
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ centrado horizontal */
  padding: 0;
  margin: 0;
}


  .nav-links ul li {
    list-style: none;
    width: 100%;
  }

  .nav-links ul li a {
  display: flex;
  align-items: center;
  justify-content: center; /* ⭐ centrado horizontal del contenido */
  gap: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

  .nav-links ul li a i {
    font-size: 1.2rem; /* asegúrate de usar íconos del mismo tamaño */
  }
}

.header-publico {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* 🔒 Footer fijo solo para historial */
.footer-fijo {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.mensaje-login,
.mensaje-producto,
.mensaje-registro {
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

