:root {
  /* Tipografías */
  --font-fredoka-bold: 'Fredoka', sans-serif;
  --font-poppins-regular: 'Poppins', sans-serif;
  --font-poppins-semibold: 'Poppins', sans-serif;
  --font-montserrat-bold: 'Montserrat', sans-serif;
  --font-nunito-semibold: 'Nunito', sans-serif;

  /* Paleta de rosas */
  --color-pink-strong: #C2185B;
  --color-pink-medium: #D81B60;
  --color-pink-vibrant: #E91E63;
  --color-pink-light: #F06292;
  --color-pink-soft: #F8BBD0;
}

/* Logo */
.navbar-brand img {
  max-height: 80px;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 50px;
  }
}
.precio-activo {
  font-weight: 700;              /* más grueso */
  color: var(--color-pink);      /* tu color corporativo */
  background-color: #fdf2f8;     /* rosa muy suave */
  border: 1px solid var(--color-pink-soft);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* sutil relieve */
}

/* Títulos principales */
.titulo-principal {
  font-family: var(--font-fredoka-bold);
  font-weight: 700;
  color: var(--color-pink-strong);
}

.titulo-principal.ver-mas-btn {
  display: block;              /* ocupa todo el ancho */
  text-align: center;          /* centra el texto */
  font-size: 1.5rem;           /* más grande */
  font-weight: bold;           /* más destacado */
  margin: 20px auto;           /* espacio arriba/abajo y centrado */
  padding: 12px 24px;          /* más área clickeable */
  border-radius: 8px;          /* bordes suaves */
  background-color: var(--color-pink-vibrant); /* color de fondo */
  color: #fff;                 /* texto blanco */
  text-decoration: none;       /* sin subrayado */
  transition: all 0.3s ease;   /* animación suave */
}

.titulo-principal.ver-mas-btn:hover {
  background-color: var(--color-pink-strong); /* efecto hover */
  transform: scale(1.05);                     /* leve zoom */
}


/* Nombres de productos */
.nombre-producto {
  font-family: var(--font-poppins-semibold);
  font-weight: 600;
  color: #000;
}

/* Precios */
.precio {
  font-family: var(--font-montserrat-bold);
  font-weight: 700;
  color: var(--color-pink-vibrant);
}
/* Precios */
.aprecio {
  font-family: var(--font-montserrat-bold);
  font-weight: 700;
  text-decoration: line-through;
  color: var(--color-pink-vibrant);
}

/* Descripciones */
.descripcion {
  font-family: var(--font-poppins-regular);
  font-weight: 400;
  color: var(--color-pink-medium);
}

/* Menú / Categorías */
.menu-categoria {
  font-family: var(--font-nunito-semibold);
  font-weight: 600;
  color: #000;
}

/* Utilitarios */
.text-pink { color: var(--color-pink-vibrant); }
.bg-pink { background-color: var(--color-pink-vibrant); }

/* Botones base */
.btn-pink-base {
  border: 1px solid var(--color-pink-vibrant);
  color: var(--color-pink-vibrant);
  background-color: transparent;
  transition: all 0.3s ease;
}
.btn-pink-base:hover {
  background-color: var(--color-pink-medium);
  color: #fff;
}

/* Botones específicos */
.btn-pink {  
  color: var(--color-pink-vibrant);
  background-color: transparent;
  transition: all 0.3s ease;  
  padding: 12px  20px;
  font-size: 1.1rem;
}
.btn-pink:hover {
  background-color: var(--color-pink-medium);
  color: #fff;
  font-size: 1.4rem;
}
.btn-pink span {
  font-size: 0.95rem;   /* texto secundario un poquito más grande */
}

.btn-pink-search { 
  color: #555;
  background-color: transparent;
  transition: all 0.3s ease;  
}
.btn-pink-search:hover {
  background-color: var(--color-pink-soft);
  color: #fff;
}

.btn-pink-login {
  background-color: var(--color-pink-vibrant);
  color: #fff;
}
.btn-pink-login:hover {
  background-color: var(--color-pink-medium);
  color: #fff;
}
.btn-outline-pink {
  border: 1px solid var(--color-pink-vibrant);
  color: var(--color-pink-vibrant);
  background-color: #fff;
}
.btn-outline-pink:hover {
  background-color: var(--color-pink-vibrant);
  color: #fff;
}

/* Scroll categorías */
.categorias-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.categorias-scroll::-webkit-scrollbar {
  height: 8px;
}
.categorias-scroll::-webkit-scrollbar-thumb {
  background: var(--color-pink-vibrant);
  border-radius: 4px;
}

/* Items de categoría */


.categoria-item {
  flex: 0 0 auto;
  text-align: center;
  background-color: transparent;
}
.categoria-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto;  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.categoria-img:hover {
  transform: scale(1.1);  
}
.categoria-item p {
  font-weight: 500;
  margin-top: 0px;
}

/* Botón ver más */
.btn-vermas {  
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-block;
  background-color: var(--color-pink-vibrant);
  color: #fff;
  font-family: var(--font-poppins-semibold);
  font-weight: 600;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-vermas:hover {
  background-color: var(--color-pink-strong);
  transform: translateY(-2px);
}

/* Contenedor producto */
.contenedor-producto {
  position: relative;
}

/* Miniaturas */
.thumb {
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.thumb:hover { transform: scale(1.1); }
.thumb.active { border: 2px solid var(--color-pink-vibrant); }

/* Login */
.input-login {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  transition: all 0.3s ease;
}
.input-login:focus {
  border-color: var(--color-pink-vibrant);
  box-shadow: 0 0 5px rgba(233, 30, 99, 0.4);
}
.card { background-color: #fff; }
.otp-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}
.otp-input:focus {
  border-color: var(--color-pink-vibrant);
  box-shadow: 0 0 5px rgba(233, 30, 99, 0.4);
}

/* Modal alerta */
#alertModal .modal-content {
  background-color: #fff;
  border-radius: 12px;
}
#alertModal h4 {
  font-family: var(--font-fredoka-bold);
}
#alertModal p {
  font-size: 1rem;
}


.punto {
  text-align: center;
  color: var(--color-pink-vibrant);
}
.punto.actual i {
  color: var(--color-pink-medium);
}
.punto.cumplido i {
  color: var(--color-pink-strong);
}
.linea {
  height: 4px;
  background-color: #ddd;
}
.linea.actual {
  background-color: var(--color-pink-medium);
}
.linea.cumplido {
  background-color: var(--color-pink-strong);
}


/* Tabla minimalista */
.table-minimal {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
}

.table-minimal thead th {
  background-color: var(--color-pink-light);
  color: black;
  font-weight: 600;
  text-align: left;
  padding: 12px;
  border: none;
  border-radius: 6px 6px 0 0;
}

.table-minimal tbody tr {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.table-minimal tbody td {
  padding: 12px;
  border: none;
  color: #333;
}

.table-minimal tbody tr:hover {
  background-color: var(--color-pink-soft);
  transition: background-color 0.3s ease;
}


.pulse {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.thumb.disabled {
  opacity: 0.5;          /* se ve apagado */
  pointer-events: none;  /* no se puede clickear */
  cursor: not-allowed;   /* cursor bloqueado */
}



/************************************************ Switch estilizado */
/* Contenedor alineado a la derecha */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* todo a la derecha */
  gap: 10px; /* espacio entre texto y switch */
  /*margin-bottom: 1rem;*/
}

/* Label estilizado */
.switch-label {
  font-family: var(--font-poppins-semibold);
  font-weight: 600;
  color: var(--color-pink-strong);
}

/* Switch estilizado */
.styled-switch {
  width: 3rem;
  height: 1.5rem;
  background-color: #ddd;
  border-radius: 1rem;
  position: relative;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

/* Círculo interior */
.styled-switch::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Estado activado */
.styled-switch:checked {
  background-color: var(--color-pink-vibrant);
}

/* Movimiento del círculo */
.styled-switch:checked::before {
  transform: translateX(1.5rem);
}

/******************** FIN SWICH *********************/
/**** GALERIA DE ARTICULOS ***/
/* Contenedor de miniaturas con select */
#galeriaMiniaturas {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.2rem;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#galeriaMiniaturas::-webkit-scrollbar {
  height: 6px;
}
#galeriaMiniaturas::-webkit-scrollbar-thumb {
  background: var(--color-pink-soft);
  border-radius: 3px;
}

/* Bloque imagen + select */
#galeriaMiniaturas .thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#galeriaMiniaturas .thumb.active {
  border-color: var(--color-pink-vibrant);
}

#galeriaMiniaturas select {
  min-width: 110px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-family: var(--font-poppins-regular);
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#galeriaMiniaturas select:focus {
  border-color: var(--color-pink-vibrant);
  box-shadow: 0 0 4px rgba(233, 30, 99, 0.3);
  outline: none;
}
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-pink-medium);
  font-family: var(--font-poppins-regular);
}

.cart-empty .material-symbols-outlined {
  font-size: 64px;
  color: var(--color-pink-soft);
  display: block;
  margin-bottom: 10px;
}

.cart-empty p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-continuar {
  background-color: var(--color-pink-vibrant);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: var(--font-poppins-semibold);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-continuar:hover {
  background-color: var(--color-pink-medium);
}

 /* input class="inputperfil"s modernos */
    p { margin-bottom: 15px; position: relative; }
    p:before {
        content: attr(type);
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 600;
        color: var(--color-pink-vibrant);
        text-transform: uppercase;
    }

    .inputperfil {
        width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
        background: var(--color-pink-soft);
        outline: none;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-family: 'Montserrat', sans-serif;
        transition: all .3s ease;
        color: #555;
    }

    .inputperfil:focus {
        border-color: var(--color-pink-strong);
        background: #fff;
        box-shadow: 0 0 8px rgba(120, 120, 140, 0.1);
    }
/**** FIN GALERIA ***/

  .tblbuscar{
     border-radius: 10px;
     max-height: 50vh;     
     overflow:auto;
     z-index: 999998;     
  }

  /* Mantener altura del banner */
/* Estilo general del banner */
.img-banner {
  width: 100%;
  height: 400px;          /* altura fija en desktop */
  object-fit: cover;      /* recorta manteniendo proporción */
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .img-banner {
    height: auto;         /* que se adapte automáticamente */
    object-fit: contain;  /* muestra la imagen completa sin recorte */
  }
}

.btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* oculto por defecto */
  background-color: var(--color-pink-vibrant);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}


/* Base del pie de página */
footer.custom-footer {
  background-color: #f9fafb;
  border-top: 2px solid #e83e8c;
  font-size: 0.875rem;
  color: #4a5568;
  padding: 1.5rem 0;
}

/* Contenedor flexible responsivo */
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Alineación de bloques internos */
.footer-brand, 
.footer-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* Estilos de imágenes */
.footer-wrapper img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Enlaces estilizados con transición */
.footer-credits a {
  color: #e83e8c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.footer-credits a:hover {
  color: #b82565;
  text-decoration: underline;
}

/* Adaptación para pantallas de computadora */
@media (min-width: 768px) {
  .footer-wrapper {
    flex-direction: row;
    text-align: left;
  }
}

.btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* oculto por defecto */
  background: rgba(255, 255, 255, 0.2); /* transparencia */
  backdrop-filter: blur(8px); /* efecto vidrio */
  -webkit-backdrop-filter: blur(8px); /* soporte Safari */
  color: var(--color-pink-vibrant);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: "none";
}

.btn-top:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.btn-top .material-symbols-outlined {
  font-size: 30px;
  line-height: 55px;
}
.btn-top .active{
  display:"block";
}


/* Loader simple */
.img-loading {
  width: 100%;
  height: 220px; /* ajustá según el alto de tu carrusel */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
}

.progress {
  width: 100%;
  background-color: #eee;
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
}

.progress-bar-inner {
  width: 0%;
  height: 100%;
  background-color: #007bff; /* azul bootstrap */
  transition: width 0.3s ease;
}
.tiempo-carrito {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2px;
}

.xcontenedor-nube {
    /* 1. Forzamos medidas idénticas para evitar estiramientos */
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    aspect-ratio: 1 / 1 !important; 
    
    /* 2. Bloqueamos que Flexbox o Grid lo estiren hacia abajo */
    align-self: flex-start; 

    /* El color de fondo rojo */
    background-color: #dc313d; 

    /* El polígono con todos sus picos */
    clip-path: polygon(
        50% 0%, 55% 3%, 61% 1%, 65% 6%, 72% 5%, 75% 11%, 81% 12%, 83% 18%, 
        88% 20%, 89% 27%, 94% 30%, 93% 37%, 97% 41%, 95% 48%, 98% 53%, 94% 59%, 
        96% 65%, 91% 70%, 92% 76%, 86% 80%, 86% 87%, 80% 90%, 79% 96%, 73% 97%, 
        67% 100%, 62% 98%, 56% 100%, 50% 97%, 44% 100%, 38% 98%, 33% 100%, 27% 97%, 
        21% 96%, 20% 90%, 14% 87%, 14% 80%, 8% 76%, 9% 70%, 4% 65%, 6% 59%, 
        2% 53%, 5% 48%, 3% 41%, 7% 37%, 6% 30%, 11% 27%, 12% 20%, 17% 18%, 
        19% 12%, 25% 11%, 28% 5%, 35% 6%, 39% 1%, 45% 3%
    );

    /* Centrado perfecto para que el texto encaje en el medio */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Posicionamiento flotante */
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}
.contenedor-nube {
    /* 1. Medidas fijas idénticas */
    width: 70px;
    height: 70px;
    
    /* 2. El color de fondo base */
    background-color: var(--color-pink-light); 
    
    /* 3. Bloqueamos que Flexbox lo estire hacia abajo */
    align-self: flex-start; 

    /* Centrado perfecto para el texto */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Posicionamiento flotante en la tarjeta */
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* El truco del sello: creamos copias rotadas del cuadrado */
.contenedor-nube::before,
.contenedor-nube::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-pink-light); /* Mismo color */
    z-index: -1; /* Se posicionan detrás del texto */
}

/* Rotamos el primer cuadrado falso a 30 grados */
.contenedor-nube::before {
    transform: rotate(30deg);
}

/* Rotamos el segundo cuadrado falso a 60 grados */
.contenedor-nube::after {
    transform: rotate(60deg);
}

/* Estilo del texto (siempre al frente) */
.texto-nube {
    color: white;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1; /* Asegura que quede por encima de las capas rotadas */
}