/* =====================================================
   DECORAZONE STUDIO — Custom CSS
   ===================================================== */

:root {
  --primary: #ec4899;
  --secondary: #8b5cf6;
  --dark: #1a1a2e;
  --light: #fdf9ff;
  --wa-green: #25D366;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; }

/* ---- Announcement bar ---- */
.announcement-bar {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ---- Navbar scrolled ---- */
#navbar {
  top: 40px; /* debajo del announcement bar */
}
#navbar.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  top: 0;
}
#navbar.no-bar {
  top: 0;
}
#navbar.scrolled .nav-link {
  color: #374151 !important;
}
#navbar.scrolled .nav-link:hover {
  color: var(--primary) !important;
}
#navbar.scrolled .nav-logo-text {
  color: var(--dark) !important;
}

/* ---- Animación globo flotante ---- */
@keyframes floatBalloon {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-22px) rotate(2deg); }
}
.balloon-float {
  animation: floatBalloon 5s ease-in-out infinite;
}

/* ---- Canvas balloon ---- */
#balloon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Typewriter ---- */
.typewriter-cursor {
  display: inline-block;
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
  opacity: 0.8;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Social Proof Ticker ---- */
.ticker-wrapper { white-space: nowrap; }
.ticker-track { display: inline-block; }
.ticker-content {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: tickerScroll 35s linear infinite;
  padding-right: 0;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

/* ---- Proceso dots background ---- */
.proceso-dots {
  background-image:
    radial-gradient(circle, #ec4899 1.5px, transparent 1.5px),
    radial-gradient(circle, #8b5cf6 1.5px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
}

/* ---- Pulso WhatsApp FAB ---- */
@keyframes pulseWA {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fab {
  animation: pulseWA 2.2s ease-in-out infinite;
}

/* ---- WhatsApp FAB Tooltip ---- */
.wa-fab-wrapper .wa-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: visibility 0s 0.25s, opacity 0.25s ease, transform 0.25s ease;
}
.wa-fab-wrapper:hover .wa-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

/* ---- WhatsApp Popup ---- */
.wa-popup-enter {
  animation: popupIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Gallery Filters ---- */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.filter-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

/* ---- Gallery item filter animation ---- */
.gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.hidden-filter {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
@keyframes filterFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.gallery-item.filter-show {
  animation: filterFadeIn 0.35s ease forwards;
}

/* ---- Gallery overlay ---- */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(236, 72, 153, 0.72) 0%,
    rgba(139, 92, 246, 0.42) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.group:hover .gallery-overlay { opacity: 1; }

/* ---- Benefit card hover glow ---- */
.benefit-card:hover {
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.12);
}

/* ---- Catalog card hover ring ---- */
.catalog-card:hover {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---- Testimonial cards ---- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.12);
}

/* ---- Scroll-to-top button ---- */
#scroll-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ---- Confetti canvas ---- */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Scrollbar personalizado ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #db2777; }

/* ---- Select custom arrow ---- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 2.75rem !important;
}

/* ---- Mobile nav close ---- */
#mobile-menu a { display: block; }

/* ---- GLightbox overrides ---- */
.glightbox-clean .gslide-description {
  background: var(--dark);
  font-family: 'Nunito', sans-serif;
  color: #e5e7eb;
}
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: var(--primary);
}

/* ---- Counter animation ---- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-counter].animated {
  animation: countUp 0.5s ease forwards;
}

/* ---- Dark gradient ---- */
.section-dark-gradient {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
}
