/* Fondo del sitio */
body {
  margin: 0;
  padding: 0;
  background: #f5f5f5; /* O tu fondo personalizado */
  overflow-x: hidden;
  position: relative;
}

/* Canvas: fondo animado por encima del background pero debajo del contenido */
canvas#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none; /* Evita que bloquee clics del contenido */
}


.page-title.light-background {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.page-title h1 {
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  margin: 0; /* reduce espacio extra */
}
  
.wrapper {
  width: 100%;
  height: 700px; /* o 100%, si querés que herede */
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* para probar */
}


.inner {
  --w: 100px;
  --h: 150px;
  --translateZ: calc((var(--w) + var(--h)) * 2);
  --rotateX: -15deg;
  --perspective: 1000px;
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 25%;
  left: calc(50% - (var(--w) / 2) - 2.5px);
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0deg);
  will-change: transform;
  cursor: grab;
}

/* Animación automática si tiene esta clase */
.inner.auto-rotate {
  animation: rotating 20s linear infinite reverse;
}
/* NUEVO CODIGO */
.inner:active {
  cursor: grabbing;
}

.inner.bloqueado {
  animation: none !important;
  pointer-events: none !important;
  cursor: default !important;
}
/* FIN NUEVO CODIGO */

@keyframes rotating {
  from {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX))
      rotateY(0);
  }
  to {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX))
      rotateY(1turn);
  }
}

.card {
  position: absolute;
  border: 2px solid rgba(var(--color-card));
  border-radius: 12px;
  overflow: hidden;
  inset: 0;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index)))
    translateZ(var(--translateZ));
}

.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0000
    radial-gradient(
      circle,
      rgba(var(--color-card), 0.2) 0%,
      rgba(var(--color-card), 0.6) 80%,
      rgba(var(--color-card), 0.9) 100%
    );
}

.card {
  position: absolute;
  width: 120px;
  height: 180px;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
  border: 2px solid rgba(var(--color-card));
  border-radius: 12px;
  background-color: rgba(var(--color-card), 0.1);
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* <-- CLAVE */
  align-items: center;
  text-align: center;
}


.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* <--- cambiamos esto */
  align-items: center;
  margin-top: 0.4em;
  gap: 0.3em; /* opcional */
}

.name {
  font-weight: 600;
  font-size: 1em;
  margin: 0.2em 0 0;
}

.birthday {
  font-size: 0.85em;
  font-weight: bold;
  color: #fff000;
  margin: 0.1em 0 0.6em;
}


.card.cumpleanero {
  border: 3px solid gold;
  box-shadow: 0 0 15px 5px gold;
  transform-style: preserve-3d;
}

.inner.cumpleanero-activo {
  animation-play-state: paused !important;
}

.toggle-cont {
  width: 100px;
  height: 50px;
  border-radius: 9999px;
}

.toggle-cont .toggle-input {
  display: none;
}

.toggle-cont .toggle-label {
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 6px;
  width: 100%;
  height: 100%;
  background: #272727;
  border-radius: 9999px;
  box-sizing: content-box;
  box-shadow: 0px 0px 16px -8px #fefefe;
}

.toggle-cont .toggle-label .cont-label-play {
  position: relative;
  width: 50px;
  aspect-ratio: 1 / 1;
  background: #5e5e5e;
  border-radius: 9999px;
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
}

.toggle-cont .toggle-input:checked + .toggle-label .cont-label-play {
  background: #f43f5e;
  transform: translateX(50px);
}

.toggle-cont .toggle-label .label-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  width: 24px;
  aspect-ratio: 1 / 1;
  background: #fefefe;
  border-radius: 4px;
  clip-path: polygon(25% 0, 75% 50%, 25% 100%, 25% 51%);
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
}

.toggle-cont .toggle-input:checked + .toggle-label .label-play {
  width: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* permite clicks solo en botones */
}

.carousel-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  pointer-events: auto;
  padding: 0.5em 1em;
  border-radius: 0.3em;
  transition: background 0.2s;
}

.carousel-controls button:hover {
  background: rgba(0,0,0,0.8);
}
