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

:root {
  --color-primario: #FF69B4;    /* Un rosa vibrante (Hot Pink) */
  --color-secundario: #FFC0CB; /* Un rosa más suave (Pink) */
  --color-acento: #FFD700;     /* Dorado para botones (Gold) */
  --color-texto: #333333;       /* Gris oscuro para texto */
  --color-fondo: #ffffff;       /* Blanco puro */
  --color-fondo-claro: #fcf5f7; /* Un fondo muy suave (tinte rosa) */
  --sombra-caja: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra suave */
}

/* Reset completo y forzado */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header de ancho completo FORZADO */
.sticky-nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0;
  right: 0;
}

/* Línea de acento en la parte superior */
.sticky-nav-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ff1493 0%, #ff69b4 40%, #ffb3d9 60%, #ff69b4 80%, #ff1493 100%);
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  gap: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
  border-bottom: 1px solid rgba(255, 105, 180, 0.12);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
  border: 2px solid #ff69b4;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.18) rotate(8deg);
  box-shadow: 0 0 0 5px rgba(255, 105, 180, 0.25), 0 0 18px rgba(255, 20, 147, 0.2);
}

/* Barra de búsqueda */
.search-container {
  position: relative;
  flex: 1;
  max-width: 450px;
  margin: 0 20px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 0.85em;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.search-container:focus-within .search-icon {
  color: #ff69b4;
}

.search-input {
  width: 100%;
  padding: 10px 18px 10px 38px;
  border: 2px solid rgba(255, 105, 180, 0.25);
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  background: #fafafa;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #bbb;
}

.search-input:focus {
  border-color: #ff69b4;
  background: white;
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.15);
}

/* User actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.welcome-user {
  color: #333;
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}

.login-link,
.register-link,
.profile-link,
.logout-link {
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Efecto brillo (shine) al pasar el mouse */
.login-link::before,
.register-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.login-link:hover::before,
.register-link:hover::before {
  left: 130%;
}

.login-link {
  color: #ff1493;
  border: 2px solid #ff1493;
  background: white;
}

.login-link:hover {
  background: #ff1493;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 20, 147, 0.3);
}

.register-link {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border: 2px solid transparent;
}

.register-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.45);
}

.profile-link,
.logout-link {
  color: #666;
  padding: 6px 15px;
  font-size: 0.85em;
}

.profile-link:hover,
.logout-link:hover {
  color: #ff1493;
  background: rgba(255, 105, 180, 0.1);
}

.cart-link {
  position: relative;
  color: #333;
  font-size: 1.3em;
  padding: 5px;
  transition: color 0.3s ease;
  will-change: transform;
}

.cart-link:hover {
  color: #ff1493;
  animation: cart-wobble 0.5s ease;
}

@keyframes cart-wobble {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-15deg) scale(1.1); }
  40%  { transform: rotate(12deg) scale(1.15); }
  60%  { transform: rotate(-8deg) scale(1.1); }
  80%  { transform: rotate(4deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

.cart-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  font-weight: 700;
  border: 2px solid white;
}

/* Navbar bottom distribuido en todo el ancho FORZADO */
.navbar-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 60px;
  background: linear-gradient(135deg, #fff0f6 0%, #ffe4f0 50%, #fff0f6 100%);
  border-top: 1px solid rgba(255, 105, 180, 0.15);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  gap: 8px;
}

.navbar-bottom a {
  flex: 0 1 auto;
  text-align: center;
  padding: 14px 32px;
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.3px;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.navbar-bottom a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #ff1493, #ff69b4);
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-bottom a:hover {
  color: #ff1493;
  background: rgba(255, 20, 147, 0.06);
}

.navbar-bottom a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Separador entre links del navbar-bottom */
.navbar-bottom a + a {
  border-left: 1px solid rgba(255, 105, 180, 0.2);
}

/* Resultados de búsqueda */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000 !important;
  border: 2px solid rgba(255, 105, 180, 0.2);
}

.search-results.active {
  max-height: 400px !important;
  opacity: 1 !important;
  overflow-y: auto;
  padding: 8px;
  display: block !important;
}

.search-results::-webkit-scrollbar {
  width: 5px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-radius: 10px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  border: 2px solid transparent;
}

.search-result-item:hover,
.search-result-item.keyboard-active {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.08), rgba(135, 206, 235, 0.08));
  border-color: #ff69b4;
  transform: translateX(5px);
}

.result-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.result-content h4 {
  color: #333;
  font-size: 0.95em;
  font-weight: 700;
  margin: 0;
}

.result-category {
  padding: 2px 8px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border-radius: 10px;
  font-size: 0.65em;
  font-weight: 700;
  white-space: nowrap;
}

.result-content p {
  color: #666;
  font-size: 0.8em;
  line-height: 1.3;
  margin: 0;
}

.result-content mark {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 105, 180, 0.4));
  color: #333;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
}

.search-no-results {
  text-align: center;
  padding: 25px 15px;
}

.no-results-icon {
  font-size: 2.5em;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}

.search-no-results p {
  color: #333;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 5px;
}

.search-no-results small {
  color: #999;
  font-size: 0.8em;
}

/* Footer - Diseño Profesional */
.footer {
  position: relative !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 150, 200, 0.3) 0%, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255, 20, 147, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #580030 0%, #920048 40%, #ae0058 70%, #580030 100%);
  color: #e8c5d3;
  padding: 36px 0 0 !important;
  margin: 0;
  margin-top: auto !important;
  clear: both !important;
  border-top: 3px solid #d6006e;
  width: 100%;
  z-index: 1 !important;
  box-shadow: 0 -4px 32px rgba(214, 0, 110, 0.28);
  flex-shrink: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px 28px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer h3 {
  font-size: 1.05rem;
  color: #ffaad4;
  margin-bottom: 14px;
  position: relative;
  font-weight: 700;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

/* Ícono en headings del footer */
.footer-h-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #ff1493, #ff69b4, transparent);
  border-radius: 2px;
}

.footer-description {
  color: rgba(255, 210, 230, 0.7);
  font-size: 0.82rem;
  margin-bottom: 12px;
  font-style: italic;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 210, 230, 0.85);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: #ff69b4;
  transform: translateX(5px);
  text-decoration: none;
}

/* Íconos en los links del footer */
.footer-link-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.footer-links a:hover .footer-link-icon {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 150, 200, 0.55);
  transform: scale(1.25) rotate(-8deg);
}

/* Íconos en contacto del footer */
.footer-contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem !important;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-style: normal;
  min-width: 26px !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.87rem;
  color: rgba(255, 220, 240, 0.9);
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact .contact-item:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-contact .contact-item:hover .footer-contact-icon {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 16px rgba(255, 150, 200, 0.55);
  transform: scale(1.15);
}

.footer-contact .contact-item .icon {
  font-size: 0.7rem !important;
  min-width: 26px !important;
}

.footer-contact .contact-item span {
  flex: 1;
}

/* --- COLORES POR ICONO --- */

/* Heading icons: cada columna con su color */
.footer-links .footer-h-icon {
  background: rgba(244, 114, 182, 0.28);
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.4);
}
.footer-contact .footer-h-icon {
  background: rgba(103, 232, 249, 0.22);
  color: #a5f3fc;
  border-color: rgba(103, 232, 249, 0.38);
}
.footer-social .footer-h-icon {
  background: rgba(253, 224, 71, 0.22);
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.38);
}

/* Nav links: colores únicos por item */
.footer-links li:nth-child(1) .footer-link-icon {
  background: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.42);
}
.footer-links li:nth-child(2) .footer-link-icon {
  background: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.42);
}
.footer-links li:nth-child(3) .footer-link-icon {
  background: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.42);
}
.footer-links li:nth-child(4) .footer-link-icon {
  background: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.42);
}

/* Contact icons: verde, azul, coral */
.footer-contact .contact-item:nth-child(2) .footer-contact-icon {
  background: rgba(74, 222, 128, 0.25);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
}
.footer-contact .contact-item:nth-child(3) .footer-contact-icon {
  background: rgba(96, 165, 250, 0.25);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.4);
}
.footer-contact .contact-item:nth-child(4) .footer-contact-icon {
  background: rgba(251, 113, 133, 0.25);
  color: #fca5a5;
  border-color: rgba(251, 113, 133, 0.4);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 20, 147, 0.06) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 105, 180, 0.28);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.28), rgba(255, 105, 180, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.12);
  border-color: #ff69b4;
  box-shadow: 0 8px 24px rgba(255, 20, 147, 0.45), 0 0 0 2px rgba(255, 105, 180, 0.12);
}

.social-btn:hover::before {
  opacity: 1;
}

.social-btn img {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
  filter: none;
  transition: filter 0.3s ease;
}

.social-btn:hover img {
  filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.8));
}

/* --- Colores de marca por red social --- */
.social-btn.facebook {
  border-color: rgba(66, 103, 178, 0.5);
  background: rgba(66, 103, 178, 0.18);
}
.social-btn.facebook::before {
  background: rgba(66, 103, 178, 0.3);
}
.social-btn.facebook:hover {
  border-color: #4267b2;
  box-shadow: 0 8px 24px rgba(66, 103, 178, 0.55), 0 0 0 2px rgba(66, 103, 178, 0.15);
}

.social-btn.instagram {
  border-color: rgba(225, 48, 108, 0.45);
  background: rgba(193, 53, 132, 0.15);
}
.social-btn.instagram::before {
  background: linear-gradient(135deg, rgba(253, 29, 29, 0.25), rgba(225, 48, 108, 0.25), rgba(131, 58, 180, 0.25));
}
.social-btn.instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.55), 0 0 0 2px rgba(225, 48, 108, 0.15);
}

.social-btn.whatsapp {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.14);
}
.social-btn.whatsapp::before {
  background: rgba(37, 211, 102, 0.28);
}
.social-btn.whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 2px rgba(37, 211, 102, 0.15);
}

.social-btn.tiktok {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
.social-btn.tiktok::before {
  background: linear-gradient(135deg, rgba(0, 242, 234, 0.2), rgba(255, 0, 80, 0.2));
}
.social-btn.tiktok:hover {
  border-color: rgba(0, 242, 234, 0.8);
  box-shadow: 0 8px 24px rgba(0, 242, 234, 0.35), 0 0 0 2px rgba(0, 242, 234, 0.1);
}

/* Barra inferior del footer */
.footer-bottom {
  text-align: center;
  padding: 14px 0;
  margin-top: 25px;
  border-top: 1px solid rgba(255, 20, 147, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.footer-bottom p {
  color: rgba(255, 200, 225, 0.65) !important;
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: 0.4px;
}



@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .search-container {
    flex-grow: 0.3;
  }
}


@media (max-width: 768px) {
  .footer {
    padding: 16px 0 0 !important;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    padding: 0 16px 14px 16px;
  }

  .footer-column:first-child {
    grid-column: 1 / -1;
  }

  .footer-description {
    display: none;
  }

  .footer h3 {
    font-size: 0.88rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .footer h3::after {
    left: 0;
    transform: none;
  }

  .footer-links a {
    font-size: 0.81rem;
  }

  .footer-links li {
    margin-bottom: 5px;
  }

  .footer-contact .contact-item {
    font-size: 0.78rem;
    margin-bottom: 6px;
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
    gap: 8px;
  }

  .social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .social-btn img {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    padding: 9px 0;
    margin-top: 14px;
  }

  .footer-bottom p {
    font-size: 0.74rem !important;
  }

  .navbar-top {
    flex-direction: column; 
    padding: 15px;
    position: static; 
  }

  .logo {
    margin-bottom: 10px;
  }

  .search-container {
    margin: 15px 0;
    width: 100%;
    flex-grow: 1;
  }

 .user-actions { 
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 5px; /* <--- Añadido */
    
  }
  
  .user-actions a { 
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 5px;
  }

 
  .cart-link {
    flex-grow: 0.5; 
    font-size: 1rem; 
  }

  /* --- NAV INFERIOR MÓVIL --- */
  .navbar-bottom {
    /* Hacemos que los enlaces se puedan deslizar horizontalmente */
    justify-content: flex-start;
    overflow-x: auto; 
    padding: 10px 5%;
    white-space: nowrap; /* Evita que los enlaces se partan */
  }
  .navbar-bottom a {
    margin: 0 12px;
    font-size: 0.9rem;
  }

  /* --- MEJORAS BUSCADOR RESPONSIVE --- */
  .search-results {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .search-results.active {
    max-height: 55vh !important; /* Altura controlada para móviles (55% de la pantalla) */
    overflow-y: auto;
  }

  .search-result-item {
    padding: 12px; /* Área táctil más grande para el dedo */
  }

  .result-header {
    flex-wrap: wrap; /* Evita que el texto se corte si es muy largo */
    gap: 5px;
  }

  /* --- SLIDER MÓVIL --- */
  .slider div img {
    height: 300px; /* Más bajo en móviles */
  }

  /* --- CUADRO MÓVIL --- */
  .cuadro {
    margin: 20px 5%; /* Menos margen lateral */
    padding: 25px;
    width: 90%;
  }
  #typed {
    font-size: 1.8rem;
    min-height: 100px;
  }
  .cuadro h3 {
    font-size: 1.1rem;
  }
  .beneficios {
    text-align: left;
    width: 100%; /* Ocupa todo el ancho */
  }
  .beneficios h4 {
    font-size: 1rem;
  }
  .cuadro button {
    font-size: 1rem;
    padding: 12px 30px;
  }

}


/* --- Estilo para el Contador del Carrito en el Header --- */
.cart-link {
  position: relative; /* Necesario para posicionar el contador */
  display: inline-block;
}

.cart-counter {
  position: absolute;
  top: -8px;      /* Lo sube un poco */
  right: -10px;   /* Lo mueve a la derecha */
  background-color: var(--color-acento); /* ¡Color dorado! */
  color: #333; /* Texto oscuro para que contraste */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 50%; /* Círculo perfecto */
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1; /* Asegura que el número esté centrado */
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* --- Estilos Generales --- */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif; 
  background-color: var(--color-fondo-claro);
  color: var(--color-texto);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif; 
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--color-primario);
}

img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .navbar-top,
  .navbar-bottom {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .navbar-bottom a {
    font-size: 0.95em;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .navbar-top {
    flex-wrap: wrap;
    padding: 10px 20px;
  }
  
  .navbar-bottom {
    padding: 10px 20px;
  }
  
  .search-container {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 8px 0 0 0;
  }
  
  .user-actions {
    gap: 8px;
  }
  
  .login-link,
  .register-link {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  
  .navbar-bottom a {
    padding: 8px 10px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .navbar-top {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navbar-bottom {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 15px;
  }
  
  .logo img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .cart-link {
    font-size: 1.2em;
  }
  
  .navbar-bottom a {
    flex: 0 1 calc(50% - 10px);
    padding: 8px 12px;
    font-size: 0.85em;
  }
}

/* ============================================
   MENÚ HAMBURGUESA (RESPONSIVE MÓVIL)
   ============================================ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: 8px;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ff1493;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Reorganizar navbar-top: logo izquierda + hamburguesa derecha */
  .navbar-top {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 10px 16px !important;
    gap: 0 !important;
  }

  /* Logo en fila 1, lado izquierdo */
  .logo {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
  }

  /* Hamburguesa en fila 1, lado derecho */
  .hamburger-btn {
    display: flex;
    order: 2 !important;
    margin-left: auto !important;
  }

  /* Barra de búsqueda en fila 2, ancho completo */
  .search-container {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
  }

  /* Acciones de usuario en fila 3 */
  .user-actions {
    order: 4 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding: 8px 0 4px !important;
    flex-wrap: wrap !important;
    border-top: 1px solid rgba(255, 105, 180, 0.1) !important;
    margin-top: 6px !important;
  }

  /* Texto "¡Hola, Usuario!" — oculto en móvil para ahorrar espacio */
  .welcome-user {
    display: none !important;
  }

  /* Links de usuario más compactos */
  .user-actions a {
    flex-grow: 0 !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    text-align: center !important;
  }

  /* Carrito siempre visible */
  .cart-link {
    font-size: 1.1rem !important;
    padding: 7px !important;
  }

  /* Ocultar navbar-bottom por defecto en móvil */
  .navbar-bottom {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-x: visible !important;
    white-space: normal !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #fff0f6 0%, #ffe4f0 100%);
    border-top: 2px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.18);
  }

  /* Quitar el separador vertical en móvil */
  .navbar-bottom a + a {
    border-left: none !important;
  }

  /* Mostrar cuando está abierto */
  .navbar-bottom.mobile-open {
    display: flex !important;
  }

  /* Links del menú en móvil */
  .navbar-bottom > a,
  .navbar-bottom > .dropdown > a {
    padding: 16px 22px !important;
    border-bottom: 1px solid rgba(255, 105, 180, 0.12) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    text-align: left !important;
    flex: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #333 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
  }

  /* Eliminar la línea decorativa de hover en menú móvil */
  .navbar-bottom > a::after {
    content: none !important;
  }

  .navbar-bottom > a:hover,
  .navbar-bottom > .dropdown > a:hover {
    background: rgba(255, 105, 180, 0.07) !important;
    color: #ff1493 !important;
    padding-left: 28px !important;
    transition: all 0.2s ease !important;
  }

  /* Dropdown en móvil */
  .dropdown {
    width: 100%;
  }

  .dropdown > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .dropdown > a::after {
    content: '›' !important;
    font-size: 1.3em !important;
    color: #ff69b4 !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    float: none !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    line-height: 1 !important;
  }

  .dropdown.mobile-dropdown-open > a::after {
    transform: rotate(90deg) !important;
  }

  .dropdown-content {
    position: static !important;
    box-shadow: none !important;
    display: none !important;
    background: #fff5f8 !important;
    min-width: 100% !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(255, 105, 180, 0.1) !important;
  }

  .dropdown.mobile-dropdown-open .dropdown-content {
    display: block !important;
  }

  .dropdown-content a {
    padding: 13px 22px 13px 40px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    border-bottom: 1px solid rgba(255, 105, 180, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .dropdown-content a:last-child {
    border-bottom: none !important;
  }

  .dropdown-content a:hover {
    color: #ff1493 !important;
    background: rgba(255, 105, 180, 0.06) !important;
    padding-left: 46px !important;
    transition: all 0.2s ease !important;
  }
}
