:root {
  --rosa-intenso: #ff4d6d;
  --rosa-soft: #ff85a2;
  --rosa-fondo: #fff5f7;
  --texto: #4a4a4a;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--rosa-fondo);
  margin: 0;
  color: var(--texto);
}

.titulo-jacdy {
  font-family: "Great Vibes", cursive;
  font-size: 7rem;
  font-weight: 400;

  color: white;
  background-size: 150%; 
  -webkit-background-clip: text;
  background-clip: text;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  padding-right: 15px;
}

.titulo-nc {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  letter-spacing: 10px;
  margin-top: -15px; 

  color: white;
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

@media (max-width: 600px) {
  .titulo-jacdy {
    font-size: 5rem;
  }
  .titulo-nc {
    font-size: 2rem;
  }
}

.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.social-sidebar a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
  border-radius: 0 10px 10px 0;
  margin-bottom: 5px;
}

.icon-facebook {
  background: #3b5998;
}
.icon-instagram {
  background: #e4405f;
}
.icon-whatsapp-direct {
  background: #25d366;
}
.social-sidebar a:hover {
  width: 65px;
  padding-left: 15px;
}

@property --c-0 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(1, 100%, 64%, 1);
}
@property --x-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 90%;
}
@property --y-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 84%;
}
@property --s-start-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 17%;
}
@property --s-end-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 63%;
}
@property --s-start-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 7%;
}
@property --s-end-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 74%;
}
@property --x-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 55%;
}
@property --y-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 93%;
}
@property --c-1 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(34, 100%, 60%, 1);
}
@property --s-start-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 8%;
}
@property --s-end-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 63%;
}
@property --c-2 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(322, 71%, 78%, 1);
}
@property --x-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 47%;
}
@property --y-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 92%;
}
@property --s-start-3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 8%;
}
@property --s-end-3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 88%;
}
@property --y-3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --x-3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 57%;
}
@property --c-3 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(255, 76%, 55%, 1);
}
@property --c-4 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(328, 74%, 65%, 1);
}
@property --s-start-4 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 10%;
}
@property --s-end-4 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 68%;
}
@property --x-4 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 1%;
}
@property --y-4 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 54%;
}

@keyframes animacionFondo {
  0% {
    --c-0: hsla(1, 100%, 64%, 1);
    --x-0: 90%;
    --y-0: 84%;
    --s-start-0: 17%;
    --s-end-0: 63%;
    --s-start-1: 7%;
    --s-end-1: 74%;
    --x-1: 55%;
    --y-1: 93%;
    --c-1: hsla(34, 100%, 60%, 1);
    --s-start-2: 8%;
    --s-end-2: 63%;
    --c-2: hsla(322, 71%, 78%, 1);
    --x-2: 47%;
    --y-2: 92%;
    --s-start-3: 8%;
    --s-end-3: 88%;
    --y-3: 0%;
    --x-3: 57%;
    --c-3: hsla(255, 76%, 55%, 1);
    --c-4: hsla(328, 74%, 65%, 1);
    --s-start-4: 10%;
    --s-end-4: 68%;
    --x-4: 1%;
    --y-4: 54%;
  }
  100% {
    --c-0: hsla(309, 51%, 94%, 1);
    --x-0: 97%;
    --y-0: 83%;
    --s-start-0: 5%;
    --s-end-0: 57%;
    --s-start-1: 15%;
    --s-end-1: 88%;
    --x-1: 52%;
    --y-1: 84%;
    --c-1: hsla(296, 58%, 62%, 1);
    --s-start-2: 5%;
    --s-end-2: 84%;
    --c-2: hsla(356, 73%, 91%, 1);
    --x-2: 80%;
    --y-2: 5%;
    --s-start-3: 10%;
    --s-end-3: 72%;
    --y-3: 23%;
    --x-3: 5%;
    --c-3: hsla(353, 81%, 59%, 1);
    --c-4: hsla(326, 97%, 89%, 1);
    --s-start-4: 16%;
    --s-end-4: 60%;
    --x-4: 79%;
    --y-4: 32%;
  }
}

#background-animado {
  text-align: center;
  padding: 80px 20px;
  color: white; 
  background-color: hsla(26, 79%, 79%, 1);
  background-image:
    radial-gradient(
      circle at var(--x-0) var(--y-0),
      var(--c-0) var(--s-start-0),
      transparent var(--s-end-0)
    ),
    radial-gradient(
      circle at var(--x-1) var(--y-1),
      var(--c-1) var(--s-start-1),
      transparent var(--s-end-1)
    ),
    radial-gradient(
      circle at var(--x-2) var(--y-2),
      var(--c-2) var(--s-start-2),
      transparent var(--s-end-2)
    ),
    radial-gradient(
      circle at var(--x-3) var(--y-3),
      var(--c-3) var(--s-start-3),
      transparent var(--s-end-3)
    ),
    radial-gradient(
      circle at var(--x-4) var(--y-4),
      var(--c-4) var(--s-start-4),
      transparent var(--s-end-4)
    );
  animation: animacionFondo 10s linear infinite alternate;
  background-blend-mode: normal, normal, normal, normal, normal;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#background-animado h1 {
  font-size: 4rem;
  margin: 0;
}
#background-animado .intro-box {
  color: white;
  margin-bottom: 30px;
}

.search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 20px auto;
}
.search-wrapper input {
  width: 100%;
  padding: 15px 45 px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 13px;
  color: var(--rosa-soft);
}

.main-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
}
.catalog {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.product-card-info {
  padding: 15px;
}
.product-card button {
  background: var(--rosa-soft);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.checkout-panel {
  flex: 1;
}
.cart-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 70px;
}
.cart-list {
  list-style: none;
  padding: 0;
}
.cart-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.total-box {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--rosa-intenso);
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
}
.form-delivery input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}
.confirm-button {
  background: #25d366;
  color: white;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
  }
  .social-sidebar {
    top: auto;
    bottom: 0;
    flex-direction: row;
    width: 100%;
    transform: none;
  }
  .social-sidebar a {
    border-radius: 0;
    flex: 1;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  flex: 1;
  background: #f0f0f0;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.btn-confirm-delete {
  flex: 1;
  background: var(--rosa-intenso);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 77, 109, 0.3);
}

.btn-confirm-delete:hover {
  background: #e63958;
}

.btn-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #ff4d6d;
  border: 1.5px solid #ff4d6d;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.btn-clear i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-clear:hover {
  background-color: #ff4d6d;
  color: white;
  box-shadow: 0 8px 15px rgba(255, 77, 109, 0.2);
  transform: translateY(-2px);
}

.btn-clear:hover i {
  transform: rotate(15deg) scale(1.2);
}

.btn-clear:active {
  transform: scale(0.95);
}

.cart-list li {
  background: #fffafa;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid var(--rosa-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  animation: fadeInItem 0.4s ease;
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.remove-item {
  color: #ff85a2;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.remove-item:hover {
  color: #ff4d6d;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  line-height: 0.8; 
}



.category-nav {
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: sticky; 
  top: 0;
  z-index: 999;
  padding: 0 10px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 5px;
}

.nav-item {
  position: relative;
  padding: 15px 15px;
  cursor: pointer;
}

.nav-link {
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link i {
  font-size: 0.8rem;
  color: var(--rosa-soft);
}

.nav-item:hover .nav-link {
  color: var(--rosa-intenso);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  padding: 10px 0;
  z-index: 1000;
  border-top: 3px solid var(--rosa-intenso);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
  cursor: pointer;
}

.dropdown-menu a:hover {
  background: var(--rosa-fondo);
  color: var(--rosa-intenso);
  padding-left: 25px; 
}

/* Solo aplicar hover en pantallas grandes (computadoras) */
@media (min-width: 769px) {
  .nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeInMenu 0.3s ease;
  }
}

/* En móviles, el menú se controla SOLO por la clase .active */
@media (max-width: 768px) {
  .nav-item:hover .dropdown-menu {
    display: none; 
  }
  .dropdown-menu.active {
    display: grid !important; /* Usamos grid porque así lo definiste para móvil */
  }
} 

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: row; 
    justify-content: space-around;
    padding: 5px 0;
  }

  .nav-item {
    width: auto; 
    padding: 10px 5px;
    border-bottom: none;
    position: static; 
  }

  .nav-link {
    font-size: 0.75rem;
    flex-direction: column; 
    gap: 2px;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--rosa-intenso);

    max-height: 40vh;
    overflow-y: auto; 

    display: none;
    grid-template-columns: repeat(
      2,
      1fr
    );
  }

  .dropdown-menu.active {
    display: grid; 
  }

  .dropdown-menu a {
    padding: 12px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.85rem;
  }
}

#toastNotification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 000;
  transition:
    opacity 0.3s,
    transform 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.toast-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px) !important;
}

  .mobile-cart-shortcut {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: var(--rosa-intenso);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 2500;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

#cartCountBadge {
  position: absolute;
  top: 0;
  right: 0;
  background: white;
  color: var(--rosa-intenso);
  font-size: 0.8rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .mobile-cart-shortcut {
    display: flex;
  }
}
.search-wrapper {
  position: relative;
  width: 90%; 
  max-width: 500px;
  margin: 20px auto;
  box-sizing: border-box; 
}

.search-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 30px;
  border: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .nav-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 5px;
  }

  .nav-item {
    padding: 5px;
    text-align: center;
    border: none;
  }

  .nav-link {
    font-size: 0.7rem; 
    flex-direction: column; 
    justify-content: center;
    width: 100%;
  }

  .nav-item:last-child {
    grid-column: span 3;
    margin-top: 5px;
  }
}
@media (max-width: 600px) {
  #background-animado {
    padding: 40px 10px; 
  }

  .titulo-jacdy {
    font-size: 4rem;
  }
  .titulo-nc {
    font-size: 1.5rem;
    letter-spacing: 5px;
  }

  #background-animado h2 {
    font-size: 1.2rem;
    margin-top: 10px;
  }
}
@media (max-width: 900px) {
  body {
    padding-bottom: 60px; 
  }
}

.shade-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.shade-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
}

.shade-bubble:hover {
  transform: scale(1.15);
}

.shade-bubble.active-shade {
  border-color: var(--rosa-intenso); 
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.4);
  outline: 1px solid var(--rosa-intenso);
}

.selected-shade-text {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 12px;
  font-weight: 500;
}

.selected-shade-text span {
  color: var(--rosa-intenso);
  font-weight: 700;
  text-transform: capitalize;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .shade-bubble {
    width: 26px;
    height: 26px;
  }
}

.btn-float-movil {
  display: none; 
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--rosa-intenso);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .btn-float-movil.visible {
    display: block;
    animation: fadeIn 0.3s ease-in;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos para el visor de imágenes */
.modal-content-img {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-img img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgb(255, 75, 201);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: rgb(250, 96, 255);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}