/* =========================================================
   VARIABLES GLOBALES & PALETA NEUTRA GLASS
   ========================================================= */
:root {
  --bg-color: #08090c;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   FONDO CON MALLA Y LUCES
   ========================================================= */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #1a1c24 0%, #08090c 60%);
}

.bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.blob-a {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.06);
  top: -100px;
  left: -100px;
}

.blob-b {
  width: 450px;
  height: 450px;
  background: rgba(120, 130, 160, 0.08);
  bottom: -100px;
  right: -100px;
}

.blob-c {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Partículas al mover el cursor */
.sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  pointer-events: none;
  z-index: 9999;
  animation: fade-sparkle 0.8s ease-out forwards;
}

@keyframes fade-sparkle {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0) translateY(-20px); opacity: 0; }
}

/* =========================================================
   PANTALLA DE CARGA INNOVADORA 2026 (HOLOMÓRFICA)
   ========================================================= */
#loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.no-loader #loader-screen { display: none; }

#loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  filter: blur(20px);
  pointer-events: none;
}

.loader-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Anillos Holográficos */
.holo-ring-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-outer {
  inset: 0;
  border-top-color: rgba(255, 255, 255, 0.8);
  border-right-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: holo-spin 1.8s linear infinite;
}

.ring-inner {
  inset: 12px;
  border-bottom-color: rgba(255, 255, 255, 0.9);
  border-left-color: rgba(255, 255, 255, 0.2);
  animation: holo-spin-reverse 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.holo-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: holo-breath 2s ease-in-out infinite alternate;
}

/* Números y Porcentaje */
.loader-center-data {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  font-family: 'Clash Display', sans-serif;
}

.loader-percent {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.percent-symbol {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 2px;
  font-weight: 600;
}

/* Texto de Marca y Puntos de Estado */
.loader-brand-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loader-text {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

.status-dots {
  display: flex;
  gap: 4px;
}

.status-dots span {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: dot-glow 1.4s infinite ease-in-out;
}

.status-dots span:nth-child(2) { animation-delay: 0.2s; }
.status-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Keyframes de animación */
@keyframes holo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes holo-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes holo-breath {
  0% { transform: scale(0.92); opacity: 0.3; }
  100% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes dot-glow {
  0%, 100% { background-color: rgba(255, 255, 255, 0.2); transform: scale(1); }
  50% { background-color: #ffffff; box-shadow: 0 0 8px #ffffff; transform: scale(1.3); }
}

/* =========================================================
   ESTRUCTURA DE TARJETA PRINCIPAL Y BORDES REFLECTANTES
   ========================================================= */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  box-sizing: border-box;
}

.card-border-wrap {
  position: relative;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.12) 100%);
  width: 100%;
  max-width: 380px;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
  view-transition-name: main-card;
}

.card-border-wrap.wrap-md { max-width: 420px; }
.card-border-wrap.wrap-lg { max-width: 480px; }

.card, .pack-container {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 25px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-out;
  overflow: hidden;
}

.card::after, .pack-container::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 55%
  );
  animation: shine-sweep 7s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shine-sweep {
  0% { transform: translate(-30%, -30%); }
  20%, 100% { transform: translate(30%, 30%); }
}

.js .animate-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded .animate-item {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .animate-item:nth-child(1) { transition-delay: 0.05s; }
body.loaded .animate-item:nth-child(2) { transition-delay: 0.12s; }
body.loaded .animate-item:nth-child(3) { transition-delay: 0.18s; }
body.loaded .animate-item:nth-child(4) { transition-delay: 0.24s; }
body.loaded .animate-item:nth-child(5) { transition-delay: 0.30s; }
body.loaded .animate-item:nth-child(6) { transition-delay: 0.36s; }
body.loaded .animate-item:nth-child(7) { transition-delay: 0.42s; }
body.loaded .animate-item:nth-child(8) { transition-delay: 0.48s; }

/* Avatar */
.avatar-wrap, .pack-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.avatar-wrap::after, .pack-logo-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  opacity: 0.5;
  animation: avatar-pulse 3s infinite alternate ease-in-out;
}

@keyframes avatar-pulse {
  0% { opacity: 0.2; transform: scale(0.98); }
  100% { opacity: 0.6; transform: scale(1.04); }
}

.avatar, .pack-logo {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Nombres y Títulos */
.username-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.username {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  flex-shrink: 0;
}

.greeting {
  font-family: 'Clash Display', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.handle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Widget Spotify */
.spotify-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 6px 14px 6px 6px;
  margin: 16px auto;
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spotify-pill:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.spotify-cover {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spotify-pill.is-playing .spotify-cover {
  animation: vinyl-spin 6s linear infinite;
}

@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.spotify-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  line-height: 1.25;
}

.spotify-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.spotify-track {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.spotify-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  flex-shrink: 0;
}

.spotify-eq-bar {
  width: 2px;
  height: 30%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transform-origin: bottom;
}

.spotify-pill.is-playing .spotify-eq-bar {
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.spotify-pill.is-playing .spotify-eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.spotify-pill.is-playing .spotify-eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.spotify-pill.is-playing .spotify-eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.spotify-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.spotify-progress span {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s linear;
}

/* Botones e Iconos */
.socials-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.action-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.action-btn:hover svg {
  transform: translateX(-4px);
}

.action-btn.primary {
  background: #ffffff;
  color: #0b0c10;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.action-btn.primary:hover {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.01);
}

/* Discord Widget */
.discord-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

a.discord-widget:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.discord-avatar-container {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.discord-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #80848e;
  border-radius: 50%;
  border: 2px solid #0b0c10;
  z-index: 2;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot[data-status="online"] { background: #23a55a; box-shadow: 0 0 8px rgba(35, 165, 90, 0.8); }
.status-dot[data-status="idle"]   { background: #f0b232; box-shadow: 0 0 8px rgba(240, 178, 50, 0.7); }
.status-dot[data-status="dnd"]    { background: #f23f43; box-shadow: 0 0 8px rgba(242, 63, 67, 0.7); }

.discord-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.discord-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.discord-status-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.credit:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* =========================================================
   ESTILOS ESPECÍFICOS DE SOBRE MÍ Y MILOPACK
   ========================================================= */

/* Píldoras e Insignias */
.sub-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.pill-btn.primary-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.bio-box {
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.bio-title {
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 8px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bio-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* Estilos miloPack */
.pack-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pack-logo {
  width: 76px;
  height: 76px;
}

.pack-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.video-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.download-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 20px;
  text-align: center;
}

.download-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin: 0 0 14px 0;
}

.download-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.dl-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0b0c10;
  background: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.dl-btn:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.download-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 14px 0 0 0;
  line-height: 1.4;
}

/* =========================================================
   MODALES (VENTANAS EMERGENTES)
   ========================================================= */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dialog-overlay.open {
  opacity: 1;
  visibility: visible;
}

.dialog {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.dialog-overlay.open .dialog {
  transform: scale(1);
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.dialog-close:hover {
  color: #ffffff;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  color: #ffffff;
}

.more-socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.more-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
}

.dialog-overlay.open .more-social-btn {
  opacity: 1;
  transform: translateY(0);
}

.more-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.more-social-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #ffffff;
  margin-top: 12px;
}

.copy-btn {
  background: #ffffff;
  color: #0b0c10;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
/* =========================================================
   CONTACTO
   ========================================================= */
.dialog-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.copy-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  text-align: left;
}

.copy-btn { flex-shrink: 0; margin-left: 10px; }

.mail-btn {
  display: block;
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mail-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   MILOPACK — BOTÓN DESCARGA Y LOGO
   ========================================================= */
.pack-logo.is-square {
  border-radius: 23%;
  border: none;
  view-transition-name: pack-logo;
}

.pack-logo-wrap.is-square::after { border-radius: 23%; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.dl-btn svg { width: 16px; height: 16px; fill: currentColor; }

.dl-btn:disabled,
.dl-btn[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.dl-btn-sm {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 10px;
}

.soon-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   SUBPÁGINAS DE MILOPACK
   ========================================================= */
.sub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.back-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  transition: all 0.25s ease;
}

.back-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.25s ease; }
.back-btn:hover { background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.3); }
.back-btn:hover svg { transform: translateX(-3px); }

.pack-logo.is-small {
  width: 48px;
  height: 48px;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.sub-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

/* Pestañas */
.sub-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  margin-bottom: 18px;
}

.sub-tab {
  position: relative;
  flex: 1;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.sub-tab:hover { color: var(--text-main); }

.sub-tab span { position: relative; z-index: 1; }

.sub-tab[aria-current="page"] { color: #0b0c10; font-weight: 600; }

.sub-tab .tab-indicator {
  z-index: 0;
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  view-transition-name: tab-indicator;
}

.panel {
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
  font-weight: 700;
}

.panel-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

.panel-text + .panel-text { margin-top: 8px; }

.muted { color: var(--text-muted); }

/* Recursos */
.asset-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asset-row img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.asset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Normas de uso */
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rules li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.rules .mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.rules .yes .mark { background: rgba(35, 165, 90, 0.18); color: #4ade80; }
.rules .no  .mark { background: rgba(242, 63, 67, 0.16); color: #f87171; }

/* Historial */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.04));
}

.timeline > li {
  position: relative;
  padding-bottom: 14px;
}

.timeline > li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.timeline .panel { margin-bottom: 0; }

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.version-tag {
  font-family: 'Clash Display', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.release-date {
  font-size: 11px;
  color: var(--text-muted);
}

.change-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
}

/* Versiones anteriores */
.version-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
}

.version-meta {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.empty-state svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  margin-bottom: 10px;
}

.empty-state h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #ffffff;
}

.empty-state p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   TRANSICIONES ENTRE PÁGINAS
   ========================================================= */

/* View Transitions */
@view-transition { navigation: auto; }

::view-transition-group(main-card),
::view-transition-group(pack-logo),
::view-transition-group(tab-indicator) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(main-card) {
  animation: vt-out 0.25s ease both;
}

::view-transition-new(main-card) {
  animation: vt-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes vt-out {
  to { opacity: 0; filter: blur(8px); transform: scale(0.97); }
}

@keyframes vt-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px) scale(0.98); }
}

/* Fallback */
.is-leaving .card-border-wrap {
  opacity: 0;
  transform: scale(0.96) translateY(-8px);
  filter: blur(6px);
}

/* =========================================================
   MÓVIL
   ========================================================= */
@media (max-width: 420px) {
  .card, .pack-container { padding: 28px 20px; }
  .sub-tab { font-size: 11px; padding: 9px 4px; }
  .asset-row { flex-direction: column; text-align: center; }
  .asset-btns { justify-content: center; }
}

/* =========================================================
   REDUCIR MOVIMIENTO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .card::after, .pack-container::after { display: none; }
  @view-transition { navigation: none; }
}

ul.sub-pills { list-style: none; padding: 0; margin-top: 0; }
