* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  text-align: center;
}

.top-bar {
  background: #612066;
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-header img {
  height: 44px;
}

.ruleta-container {
  margin-top: 40px;
}

h2 {
  margin-bottom: 30px;
  font-weight: 500;
}

.ruleta-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 30px auto;
}

.pointer {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid #612066;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.ruleta {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #612066;
  position: relative;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.3, 1);
  background: conic-gradient(
    #612066 0deg 36deg,
    #7a2c80 36deg 72deg,
    #8a2fa0 72deg 108deg,
    #9c44b5 108deg 144deg,
    #612066 144deg 180deg,
    #7a2c80 180deg 216deg,
    #8a2fa0 216deg 252deg,
    #9c44b5 252deg 288deg,
    #612066 288deg 324deg,
    #7a2c80 324deg 360deg
  );
}

.segment-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 0%;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
}

.centro {
  position: absolute;
  width: 80px;
  height: 85px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  overflow: hidden;   /* 🔥 importante para que no se salga */
  
  box-shadow: 0 0 15px rgba(255, 0, 100, 0.3);
}

.centro img {
 
  height: 100%;
  object-fit: cover; 
}


.luces {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 6px dotted #ffffff;
  animation: girar 6s linear infinite;
  opacity: 0.6;
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-btn {
  padding: 15px 35px;
  background: linear-gradient(to bottom, #8a2fa0, #612066);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 0 #4a174e;
  transition: all 0.2s ease;
}

.spin-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4a174e;
}

/* ===== MODAL OVERLAY ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
  z-index: 1000;
}

/* ===== MODAL BOX ===== */
.modal-box {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  padding: 28px 22px;
  border-radius: 16px;
  text-align: center;

  width: 100%;
  max-width: 320px;

  box-sizing: border-box;
  margin: 0 auto;

  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalPop 0.35s ease;

  max-height: 90vh;
  overflow-y: auto;
}

/* ===== CONTENIDO ===== */
.modal-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 22px;
  color: #612066;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.modal-sub {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* ===== BOTÓN ===== */
.modal-btn {
  padding: 14px;
  background: linear-gradient(to bottom, #8a2fa0, #612066);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 5px 0 #4a174e;
  transition: all 0.2s ease;
  width: 100%;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.modal-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #4a174e;
}

/* ===== ANIMACIÓN ===== */
@keyframes modalPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== PREVENIR DESBORDAMIENTO ===== */
html, body {
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at top, #ffccd9 0%, #f8b3c7 30%, #e48bb0 60%, #612066 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Corazones flotando */

body::before {
  content: "❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤";
  position: fixed;
  top: -10%;
  left: 0;
  width: 100%;
  font-size: 40px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 40px;
  animation: corazones 15s linear infinite;
  pointer-events: none;
}

@keyframes corazones {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(120vh);
  }
}



.frase-sanvalentin {
  margin-top: 40px;
  font-size: 16px;
  color: #ffffff;
  opacity: 0.8;
  letter-spacing: 1px;
}

.decoracion-love {
  margin-top: 50px;
  font-size: 22px;
  color: #ffffff;
  opacity: 0.6;
}
