/* ── FOOTER ── */
.footer {
  padding: 3rem 2rem 2rem;
  background: var(--texto);
  /* Resplandor rosa muy tenue en esquina inferior derecha — rompe el negro plano */
  background-image:
    radial-gradient(ellipse at 100% 100%, rgba(255, 97, 166, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 0%   0%,   rgba(216, 83, 136, 0.06) 0%, transparent 45%);
  /* Línea rosa en el borde superior — separa el footer con el color de marca */
  border-top: 3px solid var(--rosa-fuerte);
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile: columna única */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand img {
  object-fit: cover;
  height: auto;
  width: 200px;
}

.footer-brand p {
  max-width: 260px;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: .8rem;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Solo hijos directos — evita romper info-item y social-links */
.footer-col>a,
.footer-col>p {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
  font-size: var(--text-sm);
}

/* info-item y social-links dentro del footer no heredan display:block */
.footer-col .info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.footer-col .info-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-col .info-value {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-col .social-link {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer-col .info-value a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: var(--rosa-claro);
}

/* Mobile: footer bottom apilado y centrado */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  max-width: 1100px;
  margin: 1.5rem auto 0;
  font-size: var(--text-xs);
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    text-align: left;
  }
}


/* ── UTILITIES ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  z-index: 2100;
  padding: 0.65rem 1.5rem;
  background: var(--rosa-fuerte);
  color: #ffffff;
  border-radius: var(--radius-btn);
  box-shadow: 0 8px 24px rgba(201, 79, 124, 0.35);
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
  pointer-events: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Notificación arriba cuando el modal está abierto */
body.modal-open .toast {
  bottom: auto;
  top: 2rem;
  transform: translateX(-50%) translateY(-100px);
}

body.modal-open .toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile: botón flotante de WhatsApp más compacto */
.whatsapp-float {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, opacity 0.3s;
}

@media (min-width: 769px) {
  .whatsapp-float {
    bottom: 18px;
    right: 28px;
    width: 58px;
    height: 58px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--wa-green);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

body.cart-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}
