/* CampfireAnimation — fogata abstracta 100 % CSS (sin imágenes) */

.footer-campfire-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-campfire-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.footer-campfire-animation-slot {
  width: 100%;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .footer-campfire-animation-slot {
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
  }
}

.campfire-animation {
  position: relative;
  width: 18rem;
  height: 11rem;
  isolation: isolate;
}

.campfire-animation__glow {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: 75%;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 130, 50, 0.5) 0%,
    rgba(255, 90, 25, 0.2) 50%,
    transparent 72%
  );
  animation: campfire-glow-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.campfire-animation__logs {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  transform: translateX(-50%);
}

.campfire-animation__log {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #6b4a32 0%, #3d2818 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.campfire-animation__log:nth-child(1) {
  width: 2.6rem;
  height: 0.7rem;
  transform: rotate(-22deg) translateY(2px);
}

.campfire-animation__log:nth-child(2) {
  width: 3.2rem;
  height: 0.85rem;
}

.campfire-animation__log:nth-child(3) {
  width: 2.6rem;
  height: 0.7rem;
  transform: rotate(22deg) translateY(2px);
}

.campfire-animation__flames {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  z-index: 2;
  width: 5.5rem;
  height: 5.75rem;
  transform: translateX(-50%);
}

.campfire-animation__flame {
  position: absolute;
  bottom: 0;
  transform-origin: center bottom;
  border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%;
  animation: campfire-flame-dance 1.15s ease-in-out infinite;
}

.campfire-animation__flame--core {
  left: 50%;
  z-index: 3;
  width: 2.1rem;
  height: 3.5rem;
  margin-left: -1.05rem;
  background: linear-gradient(to top, #ea580c 0%, #fb923c 40%, #fbbf24 72%, #fef9c3 100%);
  animation-duration: 1s;
}

.campfire-animation__flame--left {
  left: 0.35rem;
  z-index: 2;
  width: 1.85rem;
  height: 2.85rem;
  background: linear-gradient(to top, #c2410c 0%, #f97316 55%, #fde047 100%);
  animation-delay: 0.12s;
  animation-duration: 1.25s;
  opacity: 0.92;
}

.campfire-animation__flame--right {
  right: 0.35rem;
  z-index: 2;
  width: 1.75rem;
  height: 2.65rem;
  background: linear-gradient(to top, #b91c1c 0%, #f97316 50%, #fcd34d 100%);
  animation-delay: 0.28s;
  animation-duration: 1.35s;
  opacity: 0.88;
}

.campfire-animation__embers {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.campfire-animation__ember {
  position: absolute;
  bottom: 2.75rem;
  left: 50%;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8);
  opacity: 0;
  animation: campfire-ember-rise 2.2s ease-out infinite;
}

.campfire-animation__ember:nth-child(1) {
  margin-left: -1.5rem;
  animation-delay: 0s;
}

.campfire-animation__ember:nth-child(2) {
  margin-left: 0.25rem;
  animation-delay: 0.7s;
}

.campfire-animation__ember:nth-child(3) {
  margin-left: 1.25rem;
  animation-delay: 1.4s;
}

@keyframes campfire-glow-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes campfire-flame-dance {
  0%,
  100% {
    transform: rotate(-4deg) scale(1, 1);
    opacity: 1;
    filter: brightness(1);
  }
  35% {
    transform: rotate(3deg) scale(1.08, 1.12);
    opacity: 0.94;
    filter: brightness(1.15);
  }
  70% {
    transform: rotate(-2deg) scale(0.94, 0.88);
    opacity: 0.82;
    filter: brightness(0.92);
  }
}

@keyframes campfire-ember-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-3.5rem) scale(0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .campfire-animation__glow,
  .campfire-animation__flame,
  .campfire-animation__ember {
    animation: none;
  }

  .campfire-animation__ember {
    display: none;
  }
}
