body {
  font-family: "Poppins", sans-serif;
  background-color: #272727;
  margin: 0;
  padding: 0;
  justify-content: center;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px 5px 6px 5px;
  background-color: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 85px;
  height: auto;
  position: relative; /* Para posicionamiento absoluto del search */
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.logo-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  top: 40px;
}

/* Contenedor móvil (oculto por defecto) */
.mobile-header-container {
  display: none;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  gap: 10px;
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 200;
  padding-left: 15px;
}

.mobile-header-container h1 {
  display: none;
  text-align: center;
  margin: 0 10px;
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-logo {
  display: none;
}

.header-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid #5c5c5c;
  box-shadow: 0 4px 12px rgba(244, 140, 140, 0.4);
  padding: 3px;
  image-rendering: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-name {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.brand-slogan {
  margin: 0;
  color: #cccccc;
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
}

h1 {
  margin: 0;
  color: #e9e9e9;
  font-size: 22px;
}

/* .buttons,
.subfilters {
  margin-top: 40px;
} */

/* Alinear las pestañas de filtros de escritorio a la izquierda dentro del header */
.buttons.desktop-filters {
  align-self: flex-start; /* sobrescribe el align-items: center del header */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 4px; /* pequeño ajuste para separar del borde */
  margin-top: 150px;
}

.btn,
.subfilter-btn {
  border: none;
  background-color: #333;
  color: white;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 13px;
}

.subfilter-btn-mas {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.subfilter-btn-mas:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.08) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5) !important;
}

.btn:hover,
.subfilter-btn:hover {
  background-color: #555;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn.active {
  background-color: #535050;
  color: black;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(244, 140, 140, 0.3);
}

.btn.active:hover {
  background-color: #0f0c0c;
  transform: scale(1.02);
  color: white;
}

.subfilter-btn.active {
  background-color: #535050;
  color: black;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(244, 140, 140, 0.3);
}

.subfilter-btn.active:hover {
  background-color: #0f0c0c;
  transform: scale(1.02);
  color: white;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 15px 100px 15px;
}

.card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  margin: 10px 0 5px;
  color: #222;
  font-size: 16px;
}

.card .marca {
  color: #888;
  font-size: 12px;
  margin: 5px 0;
  font-weight: 500;
}

.card .precio {
  color: #060606;
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0;
}

.card p {
  color: #777;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Botones de paginación */
.pagination-btn-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn-paginacion {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(244, 140, 140, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  min-width: 130px;
}

.btn-paginacion:hover {
  background: linear-gradient(135deg, #969696 0%, #201b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 140, 140, 0.4);
}

.btn-paginacion:active {
  transform: translateY(0);
}

.pagination-info {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  padding: 0 15px;
  white-space: nowrap;
}

/* Botón de Admin - esquina superior izquierda */
.admin-btn-invisible {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 30px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

/* Contenedor de búsqueda con lupa expandible - esquina superior derecha */
.search-container {
  position: absolute;
  bottom: 10px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 200;
}

.search-toggle-btn {
  background: #141414;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.search-toggle-btn:hover {
  background: #676464;
  transform: scale(1.05);
}

.search-input {
  position: absolute;
  right: 0;
  padding: 10px 50px 10px 16px;
  border: 2px solid #333;
  border-radius: 25px;
  width: 0;
  opacity: 0;
  font-size: 14px;
  outline: none;
  transition: all 0.4s ease;
  background: white;
  pointer-events: none;
}

.search-container.active .search-input {
  width: 320px;
  max-width: calc(100vw - 80px);
  opacity: 1;
  pointer-events: all;
}

.search-container.active .search-toggle-btn {
  background: #5f5d5d;
}

.search-input:focus {
  border-color: #4e4a4a;
  box-shadow: 0 0 8px rgba(41, 40, 40, 0.4);
}

.whatsapp-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #25d366;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

.whatsapp-btn::before {
  content: "📞";
  margin-right: 5px;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Botón hamburguesa */
.hamburger-menu {
  display: none;
  background: #000000;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
  background: #010101;
}

.hamburger-menu span {
  width: 20px;
  height: 2px;
  background: white;
  transition: 0.3s;
  border-radius: 1px;
}

/* Menú lateral móvil */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #000000;
  color: white;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  font-weight: bold;
  line-height: 1;
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.mobile-filter-section {
  margin-bottom: 25px;
}

.mobile-filter-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #545353;
  padding-bottom: 8px;
}

.mobile-filter-btn,
.mobile-subfilter-btn {
  display: block;
  width: 100%;
  padding: 12px 15px;
  margin: 5px 0;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-filter-btn:hover,
.mobile-subfilter-btn:hover {
  background: #f8f8f8;
  border-color: #000000;
}

.mobile-filter-btn.active {
  background: #000000;
  color: white;
  border-color: #8d8a8a;
}

.mobile-subfilter-btn {
  background: #f9f9f9;
  font-size: 13px;
  padding: 10px 15px;
}

.mobile-subfilter-btn-mas {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  text-align: center;
  border: none;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.mobile-subfilter-btn-mas:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* Sección extra del menú móvil */
.mobile-extra-section {
  padding: 15px 20px 20px 20px;
  border-top: 2px solid #e0e0e0;
  background: #f9f9f9;
  flex-shrink: 0;
}

.mobile-extra-btn {
  display: block;
  width: 100%;
  padding: 14px 15px;
  margin: 10px 0;
  border: none;
  background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-extra-btn:hover {
  background: linear-gradient(135deg, #2c2c2c 0%, #000000 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 768px) {
  /* Ocultar contenedor desktop */
  .logo-title-container {
    display: none;
  }

  /* Mostrar contenedor móvil */
  .mobile-header-container {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
  }

  /* Ocultar filtros desktop */
  .desktop-filters,
  .desktop-subfilters {
    display: none !important;
  }

  /* Botón de admin en móvil */
  .admin-btn {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  /* Ajustar header */
  header {
    padding: 15px 0;
    width: 100%;
    min-height: 120px;
    background-image: url("logo2.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .header-top {
    margin-bottom: 8px;
    width: 100%;
    padding: 0;
  }

  .logo-title-container {
    display: none !important;
  }

  .mobile-logo {
    display: none !important;
  }

  .mobile-header-container h1 {
    display: none !important;
  }

  /* Ajustar búsqueda en móvil */
  .search-container {
    display: block;
    right: 35px;
    top: 80px;
  }

  .search-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .search-container.active .search-input {
    width: 280px;
    max-width: calc(100vw - 70px);
    padding: 10px 45px 10px 14px;
    font-size: 16px; /* Evita zoom en iOS */
  }

  /* Ajustar galería */
  .container {
    padding: 0 10px 120px 10px;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 100%;
    margin: 20px auto;
  }

  .card {
    border-radius: 12px;
  }

  .card img {
    height: 180px;
  }

  .card h3 {
    font-size: 14px;
    margin: 8px 0 4px;
  }

  .card .marca {
    font-size: 11px;
  }

  .card .precio {
    font-size: 14px;
    margin: 6px 0;
  }

  .whatsapp-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 15px;
  }

  .header-top {
    margin-bottom: 15px;
  }

  /* Ocultar contenedor desktop */
  .logo-title-container {
    display: none;
  }

  /* Mostrar contenedor móvil */
  .mobile-header-container {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
  }

  .mobile-header-container {
    padding: 0 3px;
    gap: 8px;
  }

  .mobile-header-container h1 {
    font-size: 16px;
    margin: 0 5px;
  }

  .header-logo {
    width: 28px;
    height: 28px;
  }

  header h1 {
    font-size: 18px;
  }

  .buttons,
  .subfilters {
    margin-top: 10px;
  }

  .container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .card img {
    height: 160px;
  }

  .mobile-menu {
    width: 100%;
    max-width: 320px;
  }

  /* Ajustar paginación en móvil */
  .pagination-btn-container {
    gap: 10px;
    margin: 20px 0;
    padding: 0 10px;
  }

  .btn-paginacion {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 100px;
  }

  .pagination-info {
    font-size: 13px;
    padding: 0 8px;
  }
}
/* Imagen del header */
/* ============ MODAL DE PERFUME ============ */
/* Modales personalizados */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.custom-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 30px 25px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-modal.active .custom-modal-content {
  transform: scale(1);
}

.custom-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  color: #333;
  font-size: 28px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  font-weight: bold;
}

.custom-modal-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.custom-modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #333;
  text-align: center;
}

/* Estilos del formulario */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Contenido informativo */
.info-content {
  line-height: 1.8;
}

.info-content p {
  margin: 15px 0;
  color: #555;
  font-size: 15px;
}

.info-content strong {
  color: #000;
}

.whatsapp-contact-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.perfume-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.perfume-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #444;
  border-radius: 30px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  padding: 30px;
}

.perfume-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 28px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  font-weight: bold;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 15px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.modal-info h2 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-marca {
  margin: 0;
  font-size: 14px;
  color: #cccccc;
  font-weight: 500;
}

.modal-description,
.modal-notes {
  margin: 0;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.6;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item {
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  line-height: 1.5;
}

.note-item strong {
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

.modal-precio {
  margin: 10px 0;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modal-info .whatsapp-btn {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 16px;
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    max-width: 95%;
  }

  .modal-image img {
    height: 220px;
  }

  .modal-info h2 {
    font-size: 20px;
  }

  .modal-precio {
    font-size: 24px;
  }
}

/* ============ PÁGINA DE DETALLE DEL PERFUME ============ */
.perfume-detail-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 15px 120px 15px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.detail-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.detail-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
}

.detail-container {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  box-sizing: border-box;
}

.detail-image-section {
  position: sticky;
  top: 100px;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  max-width: 100%;
}

.detail-image-section img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 15px;
}

.detail-info-section {
  color: white;
}

.detail-header {
  margin-bottom: 40px;
}

.detail-marca {
  font-size: 16px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.detail-nombre {
  font-size: 42px;
  color: white;
  margin: 0 0 20px 0;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.detail-precio {
  font-size: 36px;
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.detail-ml-selector {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  );
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 15px;
  padding: 18px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.detail-ml-selector:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.detail-ml-selector label {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.detail-ml-selector select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.98);
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-ml-selector select:hover {
  border-color: #667eea;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.detail-ml-selector select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
  background: #ffffff;
  transform: translateY(-1px);
}

.detail-description,
.detail-notes-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.detail-description h3,
.detail-notes-section h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
}

.detail-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #e0e0e0;
}

.detail-note-item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid rgba(255, 255, 255, 0.4);
}

.detail-note-item:last-child {
  margin-bottom: 0;
}

.detail-note-item strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700;
}

.detail-note-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}

.detail-whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-top: 20px;
}

.detail-whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive para página de detalle */
@media (max-width: 768px) {
  .perfume-detail-page {
    padding: 10px 10px 150px 10px;
  }

  .detail-container {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 70px auto 40px;
    padding: 0;
    width: 100%;
  }

  .detail-image-section {
    position: relative;
    top: 0;
    padding: 15px;
    margin: 0 5px;
  }

  .detail-image-section img {
    max-height: 400px;
  }

  .detail-nombre {
    font-size: 32px;
  }

  .detail-precio {
    font-size: 28px;
  }

  .detail-back-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .perfume-detail-page {
    padding: 10px 5px 180px 5px;
  }

  .detail-container {
    margin: 60px auto 40px;
    gap: 15px;
    padding: 0;
    width: 100%;
  }

  .detail-image-section {
    padding: 10px;
    margin: 0 2px;
  }

  .detail-info-section {
    padding: 0 5px;
  }

  .detail-whatsapp-btn {
    padding: 12px 20px;
    font-size: 14px;
    margin-top: 10px;
  }
  .detail-nombre {
    font-size: 26px;
  }

  .detail-precio {
    font-size: 24px;
  }

  .detail-description,
  .detail-notes-section {
    padding: 20px;
  }

  .detail-whatsapp-btn {
    width: 80%;
    text-align: center;
    padding: 14px 25px;
    font-size: 15px;
    margin-top: 15px;
  }
} /* versión móvil */

/* Animaciones para optimización de carga */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.3s ease-out forwards;
}

@media (max-width: 600px) {
  .header-logo-link {
    float: none;
    display: block;
    text-align: center;
    margin: 10px auto;
  }
}
