/* styles.css - Estilo morado y púrpura galáctico con nuevos tonos y alineación corregida */

:root {
  --galaxy-dark: #0f0c29;
  --deep-purple: #1a0a3a;
  --cosmic-purple: #4a054a;
  --vibrant-purple: #7209b7;
  --light-purple: #a663cc;
  --galaxy-accent: #c77dff;
  --starlight: #e0c8ff;
  --cosmic-white: #ffffff;
  --cosmic-shadow: rgba(114, 9, 183, 0.3);

  /* Nuevos tonos */
  --thistle: #dec9e9ff;
  --thistle-2: #dac3e8ff;
  --wisteria: #d2b7e5ff;
  --wisteria-2: #c19ee0ff;
  --lavender-floral: #b185dbff;
  --amethyst: #a06cd5ff;
  --amethyst-2: #9163cbff;
  --royal-purple: #815ac0ff;
  --royal-purple-2: #7251b5ff;
  --royal-purple-3: #6247aaff;
}

body {
  background: linear-gradient(135deg, var(--galaxy-dark), var(--deep-purple), var(--cosmic-purple));
  color: var(--starlight);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Fondo de estrellas animado */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px var(--starlight) at var(--star-left, 20%) var(--star-top, 30%), transparent 0),
    radial-gradient(2px 2px var(--galaxy-accent) at var(--star-left, 80%) var(--star-top, 70%), transparent 0);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: -1;
  animation: starDrift 100s linear infinite;
}

@keyframes starDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Estilos para el hero */
.hero {
  background: linear-gradient(135deg, var(--galaxy-dark), var(--deep-purple));
  color: var(--cosmic-white);
  text-align: center;
  padding: 10rem 1rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, var(--cosmic-shadow), transparent 30%),
              radial-gradient(circle at 80% 70%, var(--cosmic-shadow), transparent 30%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.logo-text {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--starlight), var(--galaxy-accent), var(--vibrant-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px var(--cosmic-shadow);
  animation: neonGlow 3s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  0% { text-shadow: 0 0 10px var(--cosmic-shadow); }
  100% { text-shadow: 0 0 20px var(--cosmic-shadow), 0 0 30px var(--vibrant-purple); }
}

.tagline {
  font-size: 1.6rem;
  margin: 1.5rem 0;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--starlight);
}

.btn-primary {
  background: linear-gradient(45deg, var(--vibrant-purple), var(--galaxy-accent));
  color: var(--cosmic-white);
  border: none;
  border-radius: 60px;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px var(--cosmic-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: none;
  animation: shine 3s linear infinite;
  z-index: -1;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--vibrant-purple);
  background: linear-gradient(45deg, var(--galaxy-accent), var(--vibrant-purple));
}

/* Estilos para secciones */
.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--cosmic-white);
  text-shadow: 0 0 15px var(--cosmic-shadow);
  background: linear-gradient(90deg, var(--starlight), var(--galaxy-accent), var(--vibrant-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 1rem;
}

.features {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--deep-purple), var(--cosmic-purple));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.feature-card {
  background: rgba(114, 9, 183, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--cosmic-shadow);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--vibrant-purple), var(--galaxy-accent), var(--light-purple));
  z-index: -1;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--cosmic-shadow);
}

.glow-icon {
  font-size: 2.8rem;
  color: var(--galaxy-accent);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 15px var(--vibrant-purple);
}

/* Estilos para ediciones */
.editions {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--cosmic-purple), var(--deep-purple));
}

.edition-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.edition-card {
  background: rgba(114, 9, 183, 0.1);
  border-radius: 16px;
  border: 1px solid var(--cosmic-shadow);
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edition-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--vibrant-purple), var(--galaxy-accent));
  z-index: -1;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.edition-card:hover::before {
  opacity: 1;
}

.edition-card.show {
  opacity: 1;
  transform: translateY(0);
}

.edition-header {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--vibrant-purple), var(--light-purple));
  width: 100%;
}

.edition-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--cosmic-white);
  position: relative;
  z-index: 1;
}

.chip {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--starlight);
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  margin-left: 0.8rem;
  font-weight: 600;
}

/* Estilos para carruseles */
.carousel {
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 600px;
}

.carousel img {
  width: 100%;
  display: none;
  border-radius: 10px;
}

.carousel img.active {
  display: block;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.nav-btn.active {
  background: var(--galaxy-accent);
}

.btn-download-small {
  display: inline-block;
  background: linear-gradient(45deg, var(--vibrant-purple), var(--galaxy-accent));
  color: var(--cosmic-white);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--cosmic-shadow);
  margin-top: 1rem;
}

.btn-download-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--vibrant-purple);
}

/* Estilos para comunidad */
.community {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--deep-purple), var(--galaxy-dark));
  text-align: center;
}

.links {
  display: flex;
  justify-content: center;
  gap: 2.8rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.glow-link {
  color: var(--starlight);
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.glow-link:hover {
  color: var(--galaxy-accent);
  transform: translateY(-4px);
  text-shadow: 0 0 15px var(--vibrant-purple);
}

/* Estilos para pie de página */
footer {
  background: var(--galaxy-dark);
  color: #aa7777;
  text-align: center;
  padding: 2.5rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--cosmic-shadow);
}

footer p {
  margin: 0.7rem 0;
}

/* Estilos para la tabla de comparación */
.compare-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-collapse: collapse;
  background: rgba(114, 9, 183, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cosmic-shadow);
}

.compare-table th,
.compare-table td {
  padding: 1.2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table th {
  background: linear-gradient(to right, var(--cosmic-purple), var(--vibrant-purple));
  color: var(--cosmic-white);
  font-weight: 600;
  text-transform: uppercase;
}

.compare-table tr:hover {
  background: rgba(114, 9, 183, 0.1);
}

/* Ajustes generales de alineación */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2, h3, p {
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Ajustes específicos para la tabla de comparación */
#editions + table {
  margin-top: 2rem;
}

/* Correcciones para elementos faltantes */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.gallery img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  width: 250px;
  height: auto;
}

.download {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--cosmic-purple), var(--deep-purple));
}

.btn-download {
  background: linear-gradient(45deg, var(--vibrant-purple), var(--galaxy-accent));
  color: var(--cosmic-white);
  border: none;
  border-radius: 60px;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px var(--cosmic-shadow);
  display: inline-block;
  text-decoration: none;
  margin-top: 1rem;
}

.btn-download:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--vibrant-purple);
  background: linear-gradient(45deg, var(--galaxy-accent), var(--vibrant-purple));
}

.install-guide {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.install-guide a {
  color: var(--galaxy-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.install-guide a:hover {
  text-shadow: 0 0 10px var(--vibrant-purple);
}

/* Nuevos estilos para tarjetas con tonos variados */
.feature-card:nth-child(1) {
  background: rgba(114, 9, 183, 0.1);
  border: 1px solid var(--cosmic-shadow);
}

.feature-card:nth-child(2) {
  background: rgba(160, 108, 213, 0.1);
  border: 1px solid var(--amethyst);
}

.feature-card:nth-child(3) {
  background: rgba(145, 99, 203, 0.1);
  border: 1px solid var(--amethyst-2);
}

.feature-card:nth-child(4) {
  background: rgba(129, 90, 192, 0.1);
  border: 1px solid var(--royal-purple);
}

.feature-card:nth-child(5) {
  background: rgba(113, 81, 181, 0.1);
  border: 1px solid var(--royal-purple-2);
}

/* Nuevos estilos para ediciones con tonos variados */
.edition-card:nth-child(1) {
  background: rgba(114, 9, 183, 0.1);
  border: 1px solid var(--cosmic-shadow);
}

.edition-card:nth-child(2) {
  background: rgba(160, 108, 213, 0.1);
  border: 1px solid var(--amethyst);
}

.edition-card:nth-child(3) {
  background: rgba(145, 99, 203, 0.1);
  border: 1px solid var(--amethyst-2);
}

.edition-card:nth-child(4) {
  background: rgba(129, 90, 192, 0.1);
  border: 1px solid var(--royal-purple);
}

/* Nuevos estilos para hover con tonos variados */
.feature-card:hover {
  background: rgba(114, 9, 183, 0.2);
  box-shadow: 0 20px 40px var(--cosmic-shadow);
}

.feature-card:nth-child(2):hover {
  background: rgba(160, 108, 213, 0.2);
  box-shadow: 0 20px 40px var(--amethyst);
}

.feature-card:nth-child(3):hover {
  background: rgba(145, 99, 203, 0.2);
  box-shadow: 0 20px 40px var(--amethyst-2);
}

.feature-card:nth-child(4):hover {
  background: rgba(129, 90, 192, 0.2);
  box-shadow: 0 20px 40px var(--royal-purple);
}

.feature-card:nth-child(5):hover {
  background: rgba(113, 81, 181, 0.2);
  box-shadow: 0 20px 40px var(--royal-purple-2);
}

/* Ajustes específicos para el hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 10rem 1rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
