*{
    box-sizing: border-box;
}
body {
      font-family: "Segoe UI", Arial, sans-serif;
      background-color: #121212;
      color: #fff;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
    .header{
      padding: 10px;
    }
    .header svg{
      background-color: #121212;
      padding: 10px;
      border-radius: 30px;
    }
    .app {
      width: 95%;
      max-width: 600px;
      background: #1f1f1f;
      padding: 20px;
      border-radius: 20px;
      box-shadow: 0 0 15px rgba(0,0,0,0.4);
    }

    h1 {
      text-align: center;
      color: #00e5ff;
      margin-bottom: 20px;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }

    input {
      padding: 10px;
      border-radius: 10px;
      border: none;
      background: #2a2a2a;
      color: white;
      font-size: 15px;
    }

    button {
      background: #00e5ff;
      border: none;
      padding: 12px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
    }

    button:hover {
      background: #00b3cc;
    }

    .productos {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .producto {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #242424;
      padding: 10px;
      border-radius: 10px;
    }

    .producto img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 8px;
      margin-right: 10px;
    }
    
    .selctForm{
      -webkit-appearance: none; /* Para navegadores webkit */
      -moz-appearance: none; /* Para Firefox */
      appearance: none; /* Para el resto */
      color: white;
      width: 30%;
      padding: 10px;
      font-size: 16px;
      border-radius: 10px;
       background: #2a2a2a;
      border-color: #242424;
    }


/*  A n i m a c i o n   e n   e l   f i l t r o   d e   b u s q u e d a. */
.resultado-animado {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*   P O P  U P  I N I C I O  */

/* Fondo del modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

/* Caja del modal */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
  color: #000;
  animation: zoomIn 0.4s ease;
}

/* Animación */
@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Imagen */
.promo-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Botón */
.promo-btn-i {
  background: #ff4b4b;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: 0.3s;
}

.promo-btn-i:hover {
  background: #d63a3a;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: #ff4b4b;
}


/*  M O D A L  D E  E D I C I O N  */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  color: white;
}

.modal-content input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: #2a2a2a;
  border: none;
  border-radius: 8px;
  color: white;
}

.modal-content button {
  padding: 10px;
  margin-right: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}


/*  I N D E X   I M G  */

.frontimg{
  margin: 0;
  background-image: url('imgs/perfumespost.jpeg');
  width:100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height:100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}
.frontimg svg{
  padding:10px;
  background-color:#121212;
  width: 230px;
  border-radius: 16px;
}
.frontimg label {
  text-align: center;
  margin-top:100px;
  padding:12px;
  width: 200px;
  background-color:#603333;
  border-radius: 16px;
  opacity: 0.9;
  border:1px solid #763939;
  cursor:pointer;
  box-shadow:2px 2px 15px #924949;
}
.frontimg label a {
  text-decoration: none;
  color: #fff;
}

.menu {
   background: #1f1f1f;
   padding: 10px;
   border-radius: 20px;
   width: max-content;
   margin-bottom: 10px;
   display: flex;
   flex-wrap:wrap;
   flex-direction: row;
   justify-content: center;
   align-items: center;
}
.menu label{
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: lighter;
  padding: 10px;
}
/*CATALOGO DE PERFUMES*/
.container {
      width: 85%;
      max-width: 960px;
      background: #1f1f1f;
      padding: 20px;
      border-radius: 20px;
      box-shadow: 0 0 15px rgba(0,0,0,0.4);
    }
    .perfumes {
      font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: center;
      flex-direction: row;
      gap: 10px;
    }

    .perfume {
      font-size: 14px;
      background: #242424;
      padding: 10px;
      border-radius: 10px;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 130px auto;
      justify-items: center;
      max-width: 200px;
 
    }
    
    .perfume img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 8px;
      margin: 5px;
      grid-column: 1/1;
      grid-row:1;
    }
    .info {
      flex: none;
      text-align: center;
      grid-column: 1/1;
      grid-row:2;
    }
    .info p:first-child{
      font-weight: bold;
      font-size:16px;
    }
    .info p:nth-child(3){
      width: auto;
      
    }
    
    .acciones button {
      margin-left: 5px;
      border: none;
      border-radius: 8px;
      padding: 6px 10px;
      color: white;
      cursor: pointer;
    }

    .edit-btn {
      background: #4caf50;
    }

    .delete-btn {
      background: #ff4b4b;
    }

    .edit-btn:hover {
      background: #3d9140;
    }

    .delete-btn:hover {
      background: #d63737;
    }


/*  Boton de promociones  */
.promo-btn {
  background: #ff8800;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.promo-btn:hover {
  background: #e67600;
}


/* Modal de promociones */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #1f1f1f;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  border-radius: 15px;
  text-align: center;
  animation: scaleIn 0.25s ease;
}

.modal-content input {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: white;
}

.modal-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.modal-buttons button {
  flex: 1;
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #00e5ff;
  transition: 0.3s;
}

.modal-buttons button:hover {
  background: #00b3cc;
}
.chekOpt{
  font-size: .8em;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 10px;

}
.chekOpt div{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content:space-between;
  align-items: center;
}
.chekOpt div input{
  margin:8px;
}
.chekOpt div label{
  width:90%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.promo-btn {
  background: #ffcc00;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: black;
}

.promo-btn:hover {
  background: #e6b800;
}

/* Estilo de descuentos*/
v.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.price-old {
  color: #b0b0b0;
  text-decoration: line-through;
  font-size: 14px;
}

.price-new {
  font-size: 18px;
  font-weight: 800;
}

.badge-discount {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ff4b4b;
  color: #fff;
}

/* WhatsApp Button*/
.wa-btn {
  background: #444e80;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.wa-btn:hover {
  background: #25D366;
}

    /* 📱 Estilo responsivo */
@media (max-width: 768px) {
  .app {
    width: 95%;
    padding: 15px;
  }
.container{
  padding: 5px;
  width: 90%;
}

  .info {
    font-size: 14px;
  }

  button, input {
    font-size: 14px;
    padding: 9px;
  }
}

@media (max-width: 480px) {
  .app {
    border-radius: 10px;
    padding: 12px;
  }
  #buscar{
    width: 30%;
  }

 .container{
  padding: 2px;
 }
 .perfume{
  max-width: 160px;
 }

  form {
    gap: 8px;
  }

  input {
    padding: 9px;
    font-size: 13px;
  }

  button {
    padding: 10px;
    font-size: 14px;
  }

  .perfume {
    flex-direction: row;
    gap: 10px;
    padding: 8px;
  }

  .producto img {
    width: 45px;
    height: 45px;
  }

  .info {
    font-size: 13px;
  }

  .acciones button {
    padding: 4px 7px;
    font-size: 12px;
  }
}

.whatsapp-ico{
    fill: white;
    width: 50px;
    height: 50px;
    padding: 3px;
    background-color: #3d3c3b;
    border-radius: 50%;
    box-shadow: 2px 2px 6px rgba(123, 45, 45, 0.4);
    /* box-shadow: 2px 2px 11px rgba(0,0,0,0.7); */
    position: fixed;
    bottom: 20px;
    right : 20px;
    z-index: 10;
}

.whatsapp-ico:hover{
    box-shadow: 2px 2px 11px rgba(0,0,0,0.7);
}

