/* Google Fonts y variables de color */
:root {
  --primary: #ff5e62;
  --secondary: #ff9966;
  --accent: #36d1c4;
  --bg: #232946;
  --white: #fff;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  --radius: 1.5rem;
  --slot-width: 220px;
  --slot-gap: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Red Hat Display', Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  color: var(--white);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #232946 0%, #181a22 60%, #101014 100%);
}

#spiral-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  background: transparent;
}

.slot-container {
  position: relative;
  z-index: 2;
  margin: 3rem auto 2rem auto;
  max-width: calc(var(--slot-width) * 5 + var(--slot-gap) * 4);
  background: transparent;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  font-family: 'Caprasimo', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: none;
}

.slogan {
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2.2rem;
  text-align: center;
  text-shadow: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.motivational-quote {
  margin: 2.5rem auto 0 auto;
  max-width: 480px;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(35,41,70,0.7);
  border-radius: 1.2em;
  padding: 1.1em 1.5em 0.9em 1.5em;
  text-align: center;
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  z-index: 10;
  position: relative;
  box-shadow: 0 2px 12px #0002;
  backdrop-filter: blur(8px);
}
.motivational-quote a {
  color: #36d1c4;
  text-decoration: underline;
  font-weight: 700;
}
.motivational-quote a:hover {
  color: var(--primary);
}

.slots {
  display: flex;
  gap: var(--slot-gap);
  margin-bottom: 2rem;
  width: 100%;
  justify-content: center;
}

.slot-column {
  width: 180px;
  height: 180px;
  max-width: 28vw;
  max-height: 28vw;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  box-shadow: 0 2px 16px #0004, 0 0 0 6px rgba(255,255,255,0.08);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: unset;
  min-width: unset;
  transition: background 0.3s;
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
  justify-content: center;
}

.slot-column h2 {
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: none;
}

.slot-value {
  font-size: 1.25rem;
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-weight: 500;
  min-height: 2.5em;
  text-align: center;
  margin-bottom: 0.5em;
  transition: color 0.2s, text-shadow 0.2s;
  word-break: break-word;
  text-shadow: none;
}

.slot-value a {
  color: var(--secondary);
  text-decoration: underline dotted;
  transition: color 0.2s;
}

.slot-value a:hover {
  color: var(--primary);
}

.slot-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.slot-icon svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  fill: #fff;
}

.slot-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.slot-actions-top {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 2rem;
  padding: 0.8em 2em;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  outline: none;
}

button:active {
  transform: scale(0.97);
}

button:focus {
  box-shadow: 0 0 0 3px var(--accent);
}

footer {
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-family: 'Red Hat Display', Arial, sans-serif;
  text-shadow: none;
  z-index: 10;
  position: relative;
}

.footer-link {
  color: #ffe066;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.5em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-tools-link {
  margin-top: 0.7em;
  z-index: 10;
  position: relative;
}

.footer-tools-link a {
  color: #36d1c4;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.1em;
  transition: color 0.2s;
}

.footer-tools-link a:hover {
  color: var(--primary);
}

@keyframes slotSpin {
  0% { opacity: 0.2; filter: blur(2px) translateY(40px); }
  60% { opacity: 1; filter: blur(0) translateY(-10px); }
  100% { opacity: 1; filter: blur(0) translateY(0); }
}

.slot-value.spin {
  animation: slotSpin 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.logo-brainslots {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 220px;
  width: 60vw;
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
}

@media (max-width: 600px) {
  .logo-brainslots {
    max-width: 120px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 1200px) {
  .slot-container {
    max-width: 100vw;
    padding: 1.2rem 0.5rem;
  }
  .slots {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    display: flex;
  }
  .slot-column {
    width: 48vw;
    height: 48vw;
    max-width: 220px;
    max-height: 220px;
    aspect-ratio: 1/1;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .slots {
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    display: flex;
  }
  .slot-column {
    width: 80vw;
    height: 80vw;
    max-width: 160px;
    max-height: 160px;
    aspect-ratio: 1/1;
    margin: 0 auto;
  }
}

.behance-project {
  margin: 1.5rem auto 0 auto;
  max-width: 480px;
  font-size: 1.05rem;
  color: #36d1c4;
  background: rgba(35,41,70,0.7);
  border-radius: 1.2em;
  padding: 1.1em 1.5em 0.9em 1.5em;
  text-align: center;
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  z-index: 10;
  position: relative;
  box-shadow: 0 2px 12px #0002;
  backdrop-filter: blur(8px);
}
.behance-label {
  color: #ffe066;
  font-weight: 700;
  font-size: 1em;
}
.behance-link {
  color: #36d1c4;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.08em;
}
.behance-link:hover {
  color: var(--primary);
}
.behance-autor {
  color: #fff;
  font-size: 0.98em;
  font-style: italic;
}

.pelicula-arte {
  margin: 1.5rem auto 0 auto;
  max-width: 480px;
  font-size: 1.05rem;
  color: #ffe066;
  background: rgba(35,41,70,0.7);
  border-radius: 1.2em;
  padding: 1.1em 1.5em 0.9em 1.5em;
  text-align: center;
  font-family: 'Red Hat Display', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  z-index: 10;
  position: relative;
  box-shadow: 0 2px 12px #0002;
  backdrop-filter: blur(8px);
}
.pelicula-label {
  color: #36d1c4;
  font-weight: 700;
  font-size: 1em;
}
.pelicula-link {
  color: #ffe066;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1.08em;
}
.pelicula-link:hover {
  color: var(--primary);
}

.slot-border-anim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.slot-particle-canvas {
  width: 120px;
  height: 120px;
  display: block;
  background: none;
  pointer-events: none;
}

#spin-btn,
#spin-btn-bottom {
  font-size: 2rem;
  padding: 1rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffe066 0%, #ff9800 100%);
  color: #222;
  border: none;
  box-shadow: 0 6px 0 #b8860b, 0 8px 20px rgba(0,0,0,0.15);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
  letter-spacing: 0.04em;
  margin: 0.5rem auto 1.5rem auto;
  display: block;
  /* Asegura que el icono esté alineado */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
}

#spin-btn i,
#spin-btn-bottom i {
  color: #fbbf24; /* mismo color que el icono de Estilo Visual */
  font-size: 2.2rem;
  margin-right: 0.5em;
}

#spin-btn:active,
#spin-btn-bottom:active {
  transform: translateY(5px) scale(0.97);
  box-shadow: 0 2px 0 #b8860b, 0 4px 10px rgba(0,0,0,0.10);
  filter: brightness(0.97);
}

/* Luces animadas tipo slot para el logo */
.logo-slot-sign {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5em;
  /* Centrado y sin padding para no distorsionar el logo */
}

.logo-slot-sign .logo-brainslots {
  display: block;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  max-width: 28vw;
  max-height: 28vw;
  object-fit: contain;
  z-index: 1;
  position: relative;
  margin: 0 auto;
  background: #181a22;
}

.logo-slot-sign .slot-bulbs {
  pointer-events: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 148px;
  height: 148px;
  max-width: 35vw;
  max-height: 35vw;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slot-sign .slot-bulbs {
  --bulb-count: 16;
}

.logo-slot-sign .slot-bulbs span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #ffe066 70%, #ff9800 100%);
  box-shadow: 0 0 12px 4px #ffe06688, 0 0 0 2px #fff4 inset;
  opacity: 0.85;
  animation: bulb-glow 1.2s linear infinite;
}

@keyframes bulb-glow {
  0%, 100% { filter: brightness(1); }
  20% { filter: brightness(1.5) drop-shadow(0 0 8px #ffe066); }
  50% { filter: brightness(1.2) drop-shadow(0 0 12px #ff9800); }
  80% { filter: brightness(1.5) drop-shadow(0 0 8px #ffe066); }
}

@media (max-width: 600px) {
  .logo-slot-sign .logo-brainslots {
    width: 80px;
    height: 80px;
    max-width: 22vw;
    max-height: 22vw;
  }
  .logo-slot-sign .slot-bulbs {
    width: 98px;
    height: 98px;
    max-width: 28vw;
    max-height: 28vw;
  }
  .logo-slot-sign .slot-bulbs span {
    width: 12px;
    height: 12px;
  }
}
