  :root {
    /* Estilo Xeno / Glassmorphism */
    --bg-card: rgba(15, 15, 15, 0.85); 
    --bg-card-hover: rgba(30, 30, 30, 0.9);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent: #fff;
    --radius: 12px;
    --font: 'Segoe UI', Inter, sans-serif;
  }

  html { scroll-behavior: smooth; }

  /* Reset y Base */
  .juan-layout {
    font-family: var(--font);
    color: var(--text-main);
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background: transparent;
  }
  .juan-layout * { box-sizing: border-box; }

  /* Tipografía */
  h1 { font-size: 3rem; margin: 0 0 10px 0; text-align: center; letter-spacing: -1px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
  .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }
  h2, h3 { color: var(--text-main); margin-top: 0; }

  /* GRID PRINCIPAL */
  .main-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Contenido | Barra lateral */
    gap: 24px;
    margin-bottom: 40px;
  }

  /* Tarjetas Estilo Xeno */
  .x-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  
  /* Features */
  .features-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  }
  .mini-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 20px; border-radius: var(--radius);
    display: flex; flex-direction: column; justify-content: center;
  }
  .mini-card:hover { border-color: #777; background: var(--bg-card-hover); }
  .mini-icon { font-size: 24px; margin-bottom: 10px; }
  .mini-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
  .mini-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

  /* === CABECERA NOVEDADES Y BOTÓN ESCUDO === */
  .updates-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 15px;
  }
  
  .shield-toggle {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text-main); padding: 5px 12px; border-radius: 20px;
    cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; user-select: none;
  }
  .shield-toggle:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }
  .shield-arrow { font-size: 0.7rem; transition: transform 0.3s ease; }
  .rotate-up { transform: rotate(180deg); } /* Clase para girar flecha */
  
  /* Icono SVG de la flecha */
  .shield-icon {
    width: 14px; 
    height: 14px; 
    transition: transform 0.3s ease; /* Suavidad al girar */
    opacity: 0.7;
  }

  .updates-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
  .updates-list li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-muted);
  }
  .updates-list li strong { color: #fff; display: block; margin-bottom: 4px; }

  /* === SECCIÓN DE SEGURIDAD (ABAJO) === */
  .security-section {
    display: none; /* OCULTO POR DEFECTO */
    border-top: 1px solid var(--border); 
    padding-top: 30px; 
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
  }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  .scan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
  
  .scan-card {
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 15px;
    text-decoration: none; color: white; transition: background 0.2s; cursor: pointer;
  }
  .scan-card:hover { background: rgba(0, 230, 118, 0.1); border-color: #00e676; }
  
  .scan-status { color: #00e676; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; margin-left: auto;}
  .hash-box { 
    font-family: monospace; background: rgba(0,0,0,0.5); padding: 15px; 
    border-radius: 6px; color: var(--text-muted); word-break: break-all; margin: 20px 0; 
    border: 1px solid var(--border); font-size: 0.8rem;
  }

  /* Botones de Descarga */
  .download-hero { grid-column: 1 / -1; display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap;}
  .btn-xeno {
    background: #fff; color: #000; padding: 16px 32px; border-radius: 8px;
    font-weight: 700; text-decoration: none; font-size: 1rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s; border: none;
    min-width: 200px; justify-content: center;
  }
  .btn-xeno:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255,255,255,0.2); }
  .btn-secondary { background: transparent; border: 1px solid var(--border); color: #fff; }
  .btn-secondary:hover { border-color: #fff; }

  /* DISCORD WIDGET */
  .dw-header { padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
  .dw-title { font-size: 14px; font-weight: 800; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
  .dw-desc { font-size: 11px; color: var(--text-muted); margin: 5px 0 0 0; }
  .dw-highlight { color: #5865F2; font-weight: 700; }
  
  .dw-window {
    height: 250px; overflow: hidden; position: relative;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  }
  
  .dw-card {
    display: flex; align-items: center; padding: 8px; margin-bottom: 8px;
    border-radius: 6px; background: rgba(255,255,255,0.03); 
    height: 52px; transition: all 0.5s ease; border: 1px solid transparent;
  }
  
  .dw-minecraft { border-left: 3px solid #2ecc71; background: linear-gradient(90deg, rgba(46, 204, 113, 0.05) 0%, transparent 100%); }
  
  .dw-avatar { width: 36px; height: 36px; border-radius: 50%; margin-right: 12px; background: #333; flex-shrink: 0; }
  .dw-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; flex: 1; min-width: 0; }
  .dw-username { font-size: 13px; font-weight: 700; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dw-activity { font-size: 11px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .dw-badge { font-size: 9px; font-weight: 800; padding: 3px 6px; border-radius: 4px; background: #222; color: #777; margin-left: 8px; flex-shrink: 0; text-transform: uppercase;}
  .dw-badge-active { color: #2ecc71; background: rgba(46, 204, 113, 0.15); }

  /* MODAL */
  #downloadModal {
    display: none; position: fixed; z-index: 999; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
  }
  .modal-content {
    background-color: #111; color: #fff;
    margin: 0 auto; padding: 30px; border-radius: 16px;
    width: 95%; max-width: 400px; border: 1px solid #333;
    text-align: center;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  }
  
  @media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .download-hero { flex-direction: column; }
    .btn-xeno { width: 100%; }
  }
