/* Variables CSS para colores consistentes */
:root {
  --primary-color: #6b1b7f;
  --primary-gradient: linear-gradient(135deg, #6b1b7f 0%, #8b2d9d 100%);
  --secondary-color: #ffde00;
  --success-color: #28a745;
  --background-light: #f8f9fa;
  --text-dark: #2c3e50;
  --border-light: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.registration-form-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  position: relative;
  overflow: hidden;
}

.registration-form-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(107, 27, 127, 0.03) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.registration-form-section .title {
  color: var(--text-dark);
  font-size: 3rem;
  margin-bottom: 40px;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(107, 27, 127, 0.2);
}

.instructions {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: none;
  border-left: 6px solid var(--primary-color);
  padding: 35px;
  margin-bottom: 50px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(107, 27, 127, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.instructions::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(50%, -50%);
}

.instructions:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15),
    0 12px 35px rgba(107, 27, 127, 0.2);
}

.instructions h4 {
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
}

.instructions ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

.instructions ol li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  position: relative;
  padding-left: 60px;
  line-height: 1.7;
  font-weight: 500;
}

.instructions ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(107, 27, 127, 0.3);
  transition: var(--transition-smooth);
}

.instructions ol li:hover::before {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(107, 27, 127, 0.4);
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1),
    0 10px 35px rgba(107, 27, 127, 0.1);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.form-group {
  margin-bottom: 30px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
}

.form-group:nth-child(odd) {
  animation-delay: 0.1s;
}

.form-group:nth-child(even) {
  animation-delay: 0.15s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.form-group label::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.form-group:focus-within label::after {
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 18px 25px;
  border: 3px solid transparent;
  border-radius: 18px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #e9ecef, #f8f9fa) border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(0, 0, 0, 0.02);
  font-weight: 500;
  position: relative;
}

.form-control:focus {
  outline: none;
  background: linear-gradient(white, white) padding-box,
    var(--primary-gradient) border-box;
  box-shadow: 0 8px 25px rgba(107, 27, 127, 0.15),
    0 0 0 4px rgba(107, 27, 127, 0.1);
  transform: translateY(-2px);
}

.form-control:hover:not(:focus) {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #dee2e6, #e9ecef) border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1B7F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  padding-right: 55px;
}

.cart-summary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1), 0 10px 35px rgba(40, 167, 69, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.cart-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.cart-summary:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.15),
    0 15px 45px rgba(40, 167, 69, 0.15);
}

.cart-summary h4 {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 15px;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.cart-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.cart-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.cart-item span:first-child {
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.cart-item span:last-child {
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: var(--transition-smooth);
}

.cart-item:hover span:last-child {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.total-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 30px;
  color: var(--text-dark);
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.total-price::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  background: linear-gradient(135deg, var(--success-color), #20c997);
  border-radius: 20px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
}

.total-price span {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botones mejorados */
.btn-register,
.btn-checkout {
  font-weight: 800;
  border: none;
  padding: 18px 40px;
  border-radius: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
}

.btn-register {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffc800 100%);
  color: var(--text-dark);
  width: 100%;
}

.btn-register:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 200, 0, 0.4);
  background: linear-gradient(135deg, #ffe55a 0%, #ffd700 100%);
}

.btn-register:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-checkout {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  color: white;
  width: 100%;
  margin-top: 25px;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #32c252 0%, #17a2b8 100%);
}

.btn-checkout:active:not(:disabled) {
  transform: translateY(-2px) scale(0.98);
}

.btn-checkout:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* Efectos de ondas en botones */
.btn-register::before,
.btn-checkout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.btn-register:active::before,
.btn-checkout:active::before {
  width: 300px;
  height: 300px;
}

.btn-register span,
.btn-checkout span {
  position: relative;
  z-index: 1;
}

/* Efectos de carga */
.form-group.loading .form-control {
  background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Validación visual */
.form-control:valid {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #28a745, #20c997) border-box;
}

.form-control:invalid:not(:placeholder-shown) {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #dc3545, #fd7e14) border-box;
}

/* Efectos inclusivos específicos */
.rainbow-effect {
  background: linear-gradient(
    45deg,
    #e40303 0%,
    #ff8c00 14.28%,
    #ffed00 28.56%,
    #00811f 42.84%,
    #0044ff 57.12%,
    #732982 71.4%,
    #e40303 85.68%,
    #ff8c00 100%
  );
  background-size: 200% 200%;
  animation: rainbow-flow 2s ease-in-out;
  border-radius: 18px !important;
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 30px rgba(228, 3, 3, 0.6);
  }

  25% {
    background-position: 25% 50%;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
  }

  50% {
    background-position: 50% 50%;
    box-shadow: 0 0 30px rgba(0, 68, 255, 0.6);
  }

  75% {
    background-position: 75% 50%;
    box-shadow: 0 0 30px rgba(115, 41, 130, 0.6);
  }

  100% {
    background-position: 100% 50%;
    box-shadow: 0 0 30px rgba(228, 3, 3, 0.6);
  }
}

/* Mensajes motivadores */
.motivational-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #8b2d9d, #6b1b7f);
  color: white;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 350px;
  opacity: 0;
  transform: translateX(400px);
  animation: message-slide-in 4s ease-in-out;
}

.motivational-message.female {
  background: linear-gradient(135deg, #e91e63, #ad1457);
}

.motivational-message.male {
  background: linear-gradient(135deg, #2196f3, #0d47a1);
}

.motivational-message .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.motivational-message .text {
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
}

@keyframes message-slide-in {
  0% {
    opacity: 0;
    transform: translateX(400px);
  }

  10% {
    opacity: 1;
    transform: translateX(0);
  }

  90% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(400px);
  }
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .registration-form-section .title {
    font-size: 2.5rem;
  }

  .instructions,
  .form-container,
  .cart-summary {
    padding: 25px;
    margin: 20px 0;
  }

  .form-control {
    padding: 15px 20px;
  }

  .btn-register,
  .btn-checkout {
    padding: 15px 35px;
    font-size: 1rem;
  }

  .motivational-message {
    right: 10px;
    top: 10px;
    max-width: 280px;
    font-size: 0.9rem;
  }

  .pride-flag {
    width: 250px;
    height: 160px;
  }
}

/* Animaciones adicionales */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de partículas sutiles */
.registration-form-section::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 10px 20px 0 var(--primary-color),
    30px 60px 0 var(--secondary-color), 70px 30px 0 var(--success-color),
    90px 80px 0 var(--primary-color), 130px 40px 0 var(--secondary-color),
    150px 90px 0 var(--success-color);
  animation: sparkle 3s ease-in-out infinite alternate;
  opacity: 0.3;
}

@keyframes sparkle {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }

  100% {
    transform: translateY(-20px) rotate(360deg);
    opacity: 0.8;
  }
}

/* Efectos inclusivos específicos - Mejorado */
.rainbow-effect {
  position: relative;
  background: white !important;
  border: 4px solid transparent !important;
  background-clip: padding-box;
  animation: rainbow-glow 3s ease-in-out;
  border-radius: 18px !important;
}

.rainbow-effect::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    45deg,
    #e40303 0%,
    #ff8c00 12.5%,
    #ffed00 25%,
    #00811f 37.5%,
    #0044ff 50%,
    #732982 62.5%,
    #e40303 75%,
    #ff8c00 87.5%,
    #e40303 100%
  );
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: rainbow-border 2s ease-in-out;
}

.rainbow-effect::after {
  content: "🏳️‍🌈";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%) scale(0);
  font-size: 1.2rem;
  animation: flag-wave-small 2s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes rainbow-border {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes rainbow-glow {
  0%,
  100% {
    box-shadow: 0 0 25px rgba(228, 3, 3, 0.6);
    transform: translateY(0px);
  }

  16.66% {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
    transform: translateY(-2px);
  }

  33.33% {
    box-shadow: 0 0 30px rgba(255, 237, 0, 0.7);
    transform: translateY(-1px);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 129, 31, 0.7);
    transform: translateY(-2px);
  }

  66.66% {
    box-shadow: 0 0 30px rgba(0, 68, 255, 0.7);
    transform: translateY(-1px);
  }

  83.33% {
    box-shadow: 0 0 30px rgba(115, 41, 130, 0.7);
    transform: translateY(-2px);
  }
}

@keyframes flag-wave-small {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0) rotate(0deg);
  }

  20% {
    opacity: 1;
    transform: translateY(-50%) scale(1.3) rotate(5deg);
  }

  40% {
    transform: translateY(-50%) scale(1.1) rotate(-3deg);
  }

  60% {
    transform: translateY(-50%) scale(1.2) rotate(2deg);
  }

  80% {
    transform: translateY(-50%) scale(1) rotate(-1deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8) rotate(0deg);
  }
}

/* Efecto de partículas de colores */
.rainbow-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}

.rainbow-particles::before,
.rainbow-particles::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  animation: particles-float 3s ease-in-out;
}

.rainbow-particles::before {
  background: linear-gradient(45deg, #e40303, #ff8c00);
  top: 20%;
  left: 10%;
  animation-delay: 0.5s;
}

.rainbow-particles::after {
  background: linear-gradient(45deg, #0044ff, #732982);
  bottom: 20%;
  right: 10%;
  animation-delay: 1s;
}

@keyframes particles-float {
  0% {
    opacity: 0;
    transform: translateY(0px) scale(0.5);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
  }
}
