/* ===== DOWNLOAD SECTION CORREGIDA ===== */
.download {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6b8cff 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor principal */
.download .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tarjeta centrada */
.download-card {
  text-align: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 50px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Efectos de fondo */
.download::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.download::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  animation: rainbow 3s linear infinite;
  background-size: 300% 100%;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Badge */
.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.download-badge i {
  animation: pulse 2s infinite;
}

.download-badge i:first-child {
  color: #ffd700;
}

.download-badge i:last-child {
  color: #ff6b6b;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Título */
.glitch-text {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow:
    2px 2px 0 #ff6b6b,
    -2px -2px 0 #4ecdc4;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%,
  100% {
    transform: skew(0deg, 0deg);
  }
  95% {
    transform: skew(0deg, 0deg);
  }
  96% {
    transform: skew(5deg, 2deg);
    text-shadow: 3px 1px 0 #ff6b6b;
  }
  97% {
    transform: skew(-5deg, -2deg);
    text-shadow: -3px -1px 0 #4ecdc4;
  }
  98% {
    transform: skew(0deg, 0deg);
  }
}

.download-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Wrapper para centrar el botón */
.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px 0;
}

/* Botón decorativo */
.coming-soon-button {
  display: inline-block;
  position: relative;
  cursor: default;
  transition: all 0.3s ease;
  max-width: 100%;
}

.button-content {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2d3748, #1a202c);
  padding: 15px 35px;
  border-radius: 20px;
  gap: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.button-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s infinite;
  flex-shrink: 0;
}

.button-icon i {
  color: white;
  font-size: 2.2rem;
}

.button-text {
  text-align: left;
}

.button-small {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 2px;
  display: block;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button-large {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  background: linear-gradient(135deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button-overlay {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ff6b6b
  );
  border-radius: 22px;
  z-index: 1;
  animation: borderRotate 3s linear infinite;
  background-size: 300% 100%;
  opacity: 0.5;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.button-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.3),
    transparent 70%
  );
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coming-soon-button:hover .button-glow {
  opacity: 1;
}

.coming-soon-button:hover .button-content {
  transform: translateY(-2px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.store-note {
  font-size: 1rem;
  margin-top: 20px;
  opacity: 0.8;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 20px;
  border-radius: 40px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse 2s infinite;
}

/* Estado de desarrollo */
.development-status {
  max-width: 450px;
  width: 100%;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.status-badge {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.progress-bar-container {
  margin-top: 10px;
  width: 100%;
}

.progress-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1, #96ceb4);
  border-radius: 10px;
  animation: progressPulse 2s ease-in-out infinite;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-stages {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
}

.stage {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mini features */
.mini-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.mini-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 30px;
}

.mini-feature i {
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .download-card {
    max-width: 600px;
    padding: 40px 30px;
  }

  .glitch-text {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .download {
    padding: 60px 0;
  }

  .download-card {
    max-width: 500px;
    padding: 35px 25px;
  }

  .glitch-text {
    font-size: 2rem;
  }

  .download-description {
    font-size: 1.1rem;
    max-width: 400px;
  }

  .button-content {
    padding: 12px 25px;
    gap: 15px;
  }

  .button-icon {
    width: 40px;
    height: 40px;
  }

  .button-icon i {
    font-size: 1.8rem;
  }

  .button-large {
    font-size: 1.5rem;
  }

  .development-status {
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .download {
    padding: 40px 0;
  }

  .download-card {
    max-width: 100%;
    padding: 30px 20px;
    border-radius: 30px;
  }

  .glitch-text {
    font-size: 1.6rem;
  }

  .download-description {
    font-size: 1rem;
    max-width: 300px;
  }

  .download-badge {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .button-content {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .button-text {
    text-align: center;
  }

  .button-large {
    font-size: 1.3rem;
  }

  .button-small {
    font-size: 0.75rem;
  }

  .development-status {
    padding: 20px;
  }

  .status-header {
    font-size: 0.9rem;
  }

  .progress-stages {
    font-size: 0.75rem;
  }

  .mini-features {
    gap: 15px;
  }

  .mini-feature {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .glitch-text {
    font-size: 1.4rem;
  }

  .button-large {
    font-size: 1.1rem;
  }

  .button-icon {
    width: 35px;
    height: 35px;
  }

  .button-icon i {
    font-size: 1.5rem;
  }

  .mini-features {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .mini-feature {
    width: fit-content;
  }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 320px) {
  .download-card {
    padding: 20px 15px;
  }

  .glitch-text {
    font-size: 1.2rem;
  }

  .download-badge {
    padding: 5px 15px;
    font-size: 0.8rem;
  }

  .button-content {
    padding: 15px;
  }
}
