/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #ffffff;
}

/* ===== SISTEMA DE PANTALLAS ===== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ===== HOME ===== */

.home {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Fondo galaxia: usa tu imagen, si no, se queda el degradado */
background-image:url("img/bg-home.png"); /* tu nueva imagen */
background-size: cover;
background-position: center;
background-repeat: no-repeat;

}

/* Capa para dar efecto de noche suave y contraste */
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 8, 30, 0.7), rgba(5, 8, 30, 0.95));
  z-index: 0;
}

.home-header,
.home-main,
.home-astronauta,
.top-menu {
  position: relative;
  z-index: 1;
}

/* ===== MENÚ SUPERIOR ===== */

.top-menu {
  position: absolute;
  top: 16px;
  right: 20px;     /* mover a la derecha */
  left: unset;     /* quitar control izquierdo */
  transform: none; /* eliminar el centramiento */

  display: flex;
  gap: 12px;       /* más separación entre botones */
  padding: 12px 18px;

  background: rgba(20, 10, 60, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);

  z-index: 10;
}


.top-item {
  padding: 6px 14px;     /* más grandes */
  font-size: 0.85rem;     /* tipografía más visible */
  font-weight: 600;       /* más firme */
  border-radius: 999px;
  opacity: 0.85;
  background: transparent;
  color: #ffffff;
  transition: all 0.2s ease;
}

.top-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.top-item.active {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}


.top-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-item.active {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

/* ===== LOGO ===== */

.home-header {
  margin-top: 52px;
  margin-bottom: 16px;
}

.home-logo {
  font-size: 3rem;           /* MÁS GRANDE */
  letter-spacing: 0.25em;    /* separación elegante */
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55); /* brillo suave */
}


/* ===== TARJETA CENTRAL ===== */

.home-main {
  width: 100%;
  max-width: 520px;
  padding: 22px 22px 26px;
  border-radius: 24px;

  /* Nuevo glassmorphism */
  background: rgba(120, 70, 200, 0.25); /* morado suave transparente */
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  text-align: center;
  margin-top: 20px;   /* súbelo un poquito */
  margin-bottom: -20px
}

.home-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.96;
  margin: 0 0 20px;
}

/* ===== BOTONES ===== */

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 0.9rem 2.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

/* Principal morado bonito */
.btn-primary {
  background: linear-gradient(135deg, #ff9ff3, #a855f7);
  color: #2b1035;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

/* Secundario contorno morado */
.btn-secondary {
  background: rgba(17, 12, 54, 0.6);
  color: #f9e8ff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== ASTRONAUTA ===== */

.home-astronauta {
  margin-top: 28px;
  max-width: 160px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8));
}

/* ===== DESKTOP ===== */

@media (min-width: 768px) {
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.7rem;
    gap: 0.4rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 50;
  }

  /* Dejar espacio arriba para que el menú no tape el contenido */
  body {
    padding-top: 3rem;
  }

  /* Tarjeta y grid más compactos */
  .collection-card {
    margin: 1rem auto;
    padding: 1rem;
  }

  .collection-grid {
    display: grid;
    grid-template-columns: 1fr; /* una tarjeta por fila */
    gap: 1rem;
  }

  .collection-item {
    max-width: 100%;
  }

  /* Botones aún más compactos en celular */
  .collection-actions {
    flex-direction: column;
    gap: 0.4rem;
  }

  .collection-actions .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .home {
    padding: 40px 40px 60px;
  }

  .home-logo {
    font-size: 2.3rem;
  }

  .home-main {
    margin-top: 8px;
  }

  .home-astronauta {
    max-width: 190px;
  }

  .home-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
/* ===== SECCIÓN INFERIOR DE TARJETAS ===== */

.info-section {
  width: 100%;
  margin-top: 40px;  /* antes era 40px */
  padding: 50px 20px 70px;
  background: rgba(215, 198, 247, 0.0); /* un poquito más translúcido */
  text-align: center;
  border-radius: 30px 30px 0 0;
  backdrop-filter: blur(0px);
}


.info-text {
  font-size: 1rem;
  color: #b78eff;  /* lila oscuro MUY legible */
  margin-bottom: 30px;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0px 1px 2px rgba(118, 118, 118, 0.2); /* aumenta el contraste */
}


.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.65); /* más claro = más visible */
  padding: 20px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.45);
}


.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #4d2fab;
}


.info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d1f78;
  margin: 6px 0;
}


.info-desc {
  font-size: 0.85rem;
  color: #5b3c92;
  opacity: 0.8;
}

/* Desktop: 4 columnas */
@media (min-width: 768px) {
  .info-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-section {
    padding: 60px 80px;
  }
}
/* ===== PÁGINA CONOCE MÁS ===== */

.about-page {
  min-height: 100vh;
  padding: 90px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;

  background-image: url("img/bg-conoce-mas.png"); /* tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 30, 0.8),
    rgba(5, 8, 30, 0.95)
  );
  z-index: 0;
}

.about-card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 28px 24px 32px;
  border-radius: 28px;
  background: rgba(120, 70, 200, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #fdf7ff;
}


/* Tarjeta principal de texto */
.about-card {
  max-width: 720px;
  width: 100%;
  padding: 28px 24px 26px;
  border-radius: 28px;

  background: rgba(120, 70, 200, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #fdf7ff;
}

.about-title {
  font-size: 2rem;
  margin: 0 0 10px;
}

.about-subtitle {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.about-text {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.96;
  margin: 0 0 10px;
  text-align: justify; /* justificado */
}

/* Grid de 4 bloques */
/* ===== TARJETAS CÓMO JUGAR ===== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 24px;
}

.how-card {
  background: rgba(215, 198, 247, 0.92);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* animación de entrada */
  opacity: 0;
  transform: translateY(12px);
  animation: howFadeUp 0.5s ease forwards;
}

/* Pequeñas demoras para efecto escalonado */
.how-card:nth-child(1) { animation-delay: 0.05s; }
.how-card:nth-child(2) { animation-delay: 0.12s; }
.how-card:nth-child(3) { animation-delay: 0.19s; }
.how-card:nth-child(4) { animation-delay: 0.26s; }
.how-card:nth-child(5) { animation-delay: 0.33s; }

/* Hover bonito */
.how-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

/* Contenedor del número + icono */
.how-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Circulito con el número */
.how-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #4d2e84;
  font-weight: 700;
  font-size: 0.95rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ícono (emoji o SVG) */
.how-icon-emoji {
  font-size: 1.9rem;
  color: #4d2e84;
}

/* Título */
.how-card h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
  color: #3f256d;
  font-weight: 600;
}

/* Texto */
.how-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #3f256d;
  line-height: 1.4;
}

/* Tarjeta 5 ocupa todo el ancho */
.how-card-large {
  grid-column: 1 / -1;
}

/* Responsive: en móvil, una columna */
@media (max-width: 600px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

/* Animación de entrada */
@keyframes howFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Ícono dentro de la tarjeta */
.how-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
  color: #4d2e84;        /* un moradito bonito */
  opacity: 0.9;
}

.how-card {
  text-align: center;   /* centrar contenido */
}


.how-card h3 {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #3f256d;
}

.how-card p {
  text-align: center;
}


/* Tarjeta 5 a lo ancho */
.how-card-full {
  grid-column: 1 / -1;
}
.advice-section {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(215, 198, 247, 0.95);
  display: flex;
  flex-direction: column;   /* En móvil: texto encima, astronauta abajo */
  gap: 16px;
  color: #3f256d;
}

.advice-text {
  flex: 1 1 auto;
}

.advice-list {
  padding-left: 18px;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.advice-list li {
  margin-bottom: 6px;
  text-align: justify;
}

/* Astronauta base */
.about-astronauta {
  max-width: 180px;
  align-self: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8));
}


/* En pantallas grandes, astronauta al lado derecho del texto */
@media (min-width: 900px) {
  .advice-section {
    flex-direction: row;      /* Texto a la izquierda, astronauta a la derecha */
    align-items: center;
    gap: 24px;                /* Espacio razonable entre ambos */
  }

  .advice-text {
    flex: 1 1 70%;            /* El texto ocupa ~70% del ancho */
  }

  .about-astronauta {
    flex: 0 0 230px;          /* Bloque fijo para la imagen */
    max-width: 150px;
    align-self: center;
  }
}
/* ===== PÁGINAS DE AUTENTICACIÓN (LOGIN / REGISTRO) ===== */

.auth-page {
  min-height: 100vh;
  padding: 90px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  background-image: url("img/bg-conoce-mas.png"); /* o la galaxia que quieras reutilizar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(150, 120, 255, 0.4), transparent 55%),
              linear-gradient(to bottom, rgba(5, 8, 30, 0.9), rgba(5, 8, 30, 0.98));
  z-index: 0;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  padding: 26px 22px 26px;
  border-radius: 26px;
  background: rgba(120, 70, 200, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #fdf7ff;
}

.auth-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.auth-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.96;
  margin: 0 0 16px;
}

/* Botón estilo Google */
.btn-google {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  background: #ffffff;
  color: #2b1035;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.5);
}

/* Separador "o" */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form-group label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 5, 20, 0.9);
  color: #ffffff;
  font-size: 0.9rem;
}

.auth-input:focus {
  outline: none;
  border-color: #ff9ff3;
  box-shadow: 0 0 0 1px rgba(255, 159, 243, 0.6);
}

/* Botón principal de login/registro */
.btn-auth-main {
  width: 100%;
  margin-top: 6px;
}

/* Links pequeños */
.auth-link {
  font-size: 0.8rem;
  margin-top: 2px;
  align-self: flex-end;
  text-decoration: none;
  color: #f5cfff;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-small {
  font-size: 0.8rem;
  margin-top: 12px;
}

.auth-link-inline {
  font-size: 0.85rem;
  color: #f5cfff;
  text-decoration: none;
}

.auth-link-inline:hover {
  text-decoration: underline;
}

/* Astronauta decorativo al lado */
.auth-astronauta {
  max-width: 180px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.85));
}

/* Desktop: card + astronauta lado a lado */
@media (min-width: 900px) {
  .auth-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .auth-card {
    max-width: 420px;
  }

  .auth-astronauta {
    max-width: 220px;
  }
}
.auth-center {
  text-align: center;
  width: 100%;
}
/* ===== PÁGINA MI COLECCIÓN ===== */
/* ===== PERFIL EN MI COLECCIÓN ===== */

/* Tarjeta general de información de usuario */
.collection-header {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 110px; /* BAJA la tarjeta debajo del menú */
  margin-bottom: 20px;
}
.profile-card {
  max-width: 720px;
  width: 100%;
  padding: 14px 18px 18px;
  border-radius: 22px;
  background: rgba(15, 8, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin:0 auto; 
}
.profile-buttons-top {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Botón arriba a la izquierda */
.profile-edit-top {
  align-self: flex-start;
  margin-bottom: 4px;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}

/* Perfil dentro de la tarjeta */
.collection-profile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.profile-main {
  display: flex;
  
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(120, 70, 200, 0.6);
}

.profile-info h1.collection-title {
  font-size: 1.4rem;
  margin: 20 20 10px;
  text-align: left;  
}

.profile-info .collection-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

/* Editor de perfil como tarjetita dentro */
.profile-editor {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(7, 4, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  display: none;
  gap: 10px;
  flex-direction: column;
}

.profile-editor.visible {
  display: flex;
}

.profile-editor-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-editor-label {
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.avatar-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-option {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 2px;
  background: transparent;
  cursor: pointer;
}

.avatar-option img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-option.selected {
  border-color: #fbc2ff;
  box-shadow: 0 0 0 2px rgba(251, 194, 255, 0.6);
}

.profile-editor-actions {
  display: flex;
  justify-content: flex-end;
}
.btn-camara {
  display: inline-block;
  background-color: #ffcc00;
  color: #000;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.btn-camara:hover {
  background-color: #e6b600;
}


/* Progreso */

.progress-section {
  margin: 12px 0 18px;
}

.progress-label {
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%; /* se actualizará con JS */
  border-radius: 999px;
  background: linear-gradient(90deg, #fbc2ff, #a855f7);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.85;
}

/* Centrar tarjetas en pantallas grandes */
/* Grid de tarjetas de bibliotecas */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
}

.collection-item {
  background: rgba(15, 8, 40, 0.9);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  max-width: 260px;
  width: 100%;
  text-align: center;
}

.collection-thumb {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fbc2ff, #a18cd1);
  opacity: 0.9;
}

.collection-item h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.collection-item p {
  font-size: 0.75rem;
  margin: 0 0 6px;
  opacity: 0.95;
}

.collection-tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

/* Desktop: 3 columnas, horizontal */
@media (min-width: 900px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collection-card {
  max-width: 900px;
  width: 100%;
  padding: 22px 20px 26px;
  border-radius: 26px;
  background: rgba(120, 70, 200, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #fdf7ff;

  text-align: center;      /* centra el contenido general */
  margin: 0 auto 40px;     /* centrada y con espacio abajo */
}

.collection-section-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
  text-align: center;      /* título centrado */
}

.collection-text {
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 620px;        /* columna de texto más agradable */
  margin: 0 auto 24px;     /* centrado y con margen inferior */
}
.collection-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}


/* ===== LOADING DE COLECCIÓN ===== */

.collection-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(150,120,255,0.4), rgba(5,8,30,0.98));
  color: #fdf7ff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  z-index: 50;
}

.collection-loading p {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 8, 40, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Cuando ya no se necesite, la ocultamos */
.collection-loading.hidden {
  display: none;
}
/* ===== PÁGINA AR ===== */

.ar-page {
  min-height: 100vh;
  padding: 100px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: url("img/bg-conoce-mas.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.ar-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(150,120,255,0.4), transparent 55%),
              linear-gradient(to bottom, rgba(5,8,30,0.9), rgba(5,8,30,0.98));
  z-index: 0;
}

.ar-card {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  padding: 24px 20px 26px;
  border-radius: 26px;
  background: rgba(120, 70, 200, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #fdf7ff;
  text-align: center;
}

.ar-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.ar-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 16px;
}

.ar-info {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-bottom: 20px;
}

.ar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.ar-actions .btn {
  width: 100%;
  max-width: 260px;
}

.ar-status {
  font-size: 0.9rem;
  margin-top: 8px;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .ar-actions {
    flex-direction: row;
    justify-content: center;
  }
}
.ar-viewer {
  margin-bottom: 18px;
}
