  :root {
    --text: #000;
    --card: #353535;
    --border: #e0e0e0;
  }
/* 
  .juan-entry {
    margin: 0 auto;
    color: var(--text-muted);
    background: transparent;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
  }

  .juan-entry h2 {
    color: var(--accent);
    margin: 30px 0 20px;
    font-size: 1.8rem;
    text-align: center;
  }

  .juan-entry h3 {
    margin: 20px 0 12px;
    color: var(--accent);
    font-size: 1.4rem;
  }

  .juan-entry p, .juan-entry li {
    margin-bottom: 12px;
  } */

  .welcome-text {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
  }

  .welcome-text h1 {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 16px;
  }

  .welcome-text p {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
  }

  .welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
  }

  .btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
  }

  .btn-outline:hover {
    color: var(--accent);
  }

  .btn-primary {
    background: var(--accent);
    color: white;
  }

  .btn-primary:hover {
    box-shadow: 0 0 10px var(--accent);
    color: #000;
  }

  .btn-outline:hover {
    box-shadow: 0 0 10px var(--accent);
    color: var(--text-main);
  }

  /* Características */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }

  .feature-item {
    background: var(--card);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  /* Video */
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Reglas */
  .rules-list {
    padding-left: 20px;
  }

  .rules-list li {
    margin-bottom: 8px;
  }

  /* Contacto */
  .contact-links a {
    color: var(--accent);
    text-decoration: none;
  }

     /* ===== TARJETA CON PROFUNDIDAD DINÁMICA ===== */
.download-section {
  background: var(--card-alt);   /* Cambia según modo oscuro/claro */
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  border-radius: 16px;
  position: relative;

    /* PROFUNDIDAD REAL */
  box-shadow:
    0px 12px 28px rgba(0, 0, 0, 0.25),   /* Sombra universal */
    0px 0px 10px rgba(230, 126, 34, 0.10); /* Brillo suave verde */

  border: 2px solid rgb(179, 179, 179);        /* Automático también */
  margin: 40px auto;
  max-width: 850px;
  transition: all 0.3s ease;
  min-width: 20px;
}

@media (max-width: 600px) {

  .welcome-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 220px;
  }

  .download-section {
    background: var(--card-alt);   /* Cambia según modo oscuro/claro */
    padding-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 16px;
    position: relative;

      /* PROFUNDIDAD REAL */
    box-shadow:
      0px 12px 28px rgba(0, 0, 0, 0.25),   /* Sombra universal */
      0px 0px 10px rgba(230, 126, 34, 0.10); /* Brillo suave verde */

    border: 2px solid rgb(179, 179, 179);        /* Automático también */
    margin: 40px auto;
    width: auto;
    transition: all 0.3s ease;
    word-break: break-all;
  }

}

.download-section:hover {
  background: var(--footer);
  border: 2px solid rgb(255, 255, 255);
  box-shadow:
    12px 12px 4px rgba(0, 0, 0, 0.25),   /* Sombra universal */
    0px 0px 10px rgba(230, 126, 34, 0.10); /* Brillo suave verde */
}

/* TITULOS */
.download-section h2 {
  color: var(--accent);
  margin: auto;
  margin-top: 20px;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 0 0 8px rgba(230, 126, 34, 0.2); /* toque gamer suave */
}

/* PÁRRAFOS */
.download-section p,
.download-section small,
.download-section b {
    color: var(--text-main);
}

/* Caja interna de advertencia */
.hash-code {
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    min-width: 50px;
    justify-self: center;
    background: var(--card-alt, rgba(0,0,0,0.1));
    box-shadow: inset 0 0 20px rgba(230, 126, 34, 0.15);
    transition: background .3s ease;
    font-size: 13px;
    text-align: center;
    background: #151515;
    color: #666;
    border: none;
    padding: 10px;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 25px 0;
}

  /* COMIENZO BOTONES */

 /* GitHub */
.download-btn-github {
  position: relative;
  color: rgb(0, 0, 0);
  padding: 12px 24px;
  border: 3px solid rgb(255, 255, 255);
  border-radius: 15px;
  corner-shape: squircle;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 0 10px rgb(0, 0, 0);
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  background: transparent;
  background-image: url("../img/github.webp");
  background-size: 260px;
  background-repeat: no-repeat;
  background-color: #000;
  background-position: center center;
  -webkit-text-stroke: 0.1px black;
}

.download-btn-github::before {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  content: 'GitHub';
  color: #000000;
  position: absolute;
  align-items: center;
  align-content: center;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: all 0.25s ease-in-out;
  border-radius: 15px;
  corner-shape: squircle;
  -webkit-text-stroke: 0.1px black;
}

.download-btn-github:hover::before {
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.download-btn-github:hover {
  border: 3px solid rgb(91, 91, 91);
  color: rgb(91, 91, 91);
  font-weight: bolder;
  box-shadow: 0 0 5px rgb(255, 255, 255);
  text-shadow: 0px 0px 0px #000000;
  transition: all 0.25s ease-in-out;
  background-size: 100px;
  -webkit-text-stroke: 0.4px rgb(91, 91, 91);
}

/* MediaFire */

.download-btn-mediafire {
  position: relative;
  color: rgb(0, 0, 0);
  padding: 12px 24px;
  border: 3px solid rgb(41, 90, 225);
  border-radius: 8px;
  corner-shape: squircle;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 0 10px #002aff;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  background: transparent;
  background-image: url("../img/mediafire.webp");
  background-size: 380px;
  background-position: center center;
  border-radius: 15px;
}

.download-btn-mediafire::before {
  border-radius: 15px;
  corner-shape: squircle;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  content: 'MediaFire';
  position: absolute;
  align-items: center;
  align-content: center;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: all 0.25s ease-in-out;
}

.download-btn-mediafire:hover::before {
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.download-btn-mediafire:hover {
  border-color: aqua;
  background-size: 165px;
  color:rgb(0, 0, 0);
  border: 3px solid rgb(255, 255, 255);
  box-shadow: 0 0 5px rgb(255, 255, 255);
  font-weight: bolder;
  text-shadow: 1px 1px 10px #1d1d1d;
  transition: all 0.25s ease-in-out;
}

/* Google Drive */

.download-btn-drive {
  position: relative;
  color: rgb(255, 255, 255);
  padding: 12px 24px;
  border: 3px solid rgb(178, 167, 51);
  border-radius: 8px;
  corner-shape: squircle;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 0 10px #fff;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  background: transparent;
  background-image: url("../img/GoogleDrive_empty.png");
  background-color: #ffffff;
  background-size: 450px;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 15px;
}

.download-btn-drive::before {
  border-radius: 15px;
  corner-shape: squircle;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  content: 'Google Drive';
  position: absolute;
  align-items: center;
  align-content: center;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: all 0.25s ease-in-out;
}

.download-btn-drive:hover::before {
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.download-btn-drive:hover {
  background-image: url("../img/GoogleDrive.png");
  border-color: aqua;
  background-size: 200px;
  color: rgb(0, 0, 0);
  border: 3px solid rgb(224, 64, 64);
  box-shadow: 0 0 10px rgb(255, 9, 9);
  font-weight: bolder;
  text-shadow: 1px 1px 10px #1d1d1d;
  transition: all 0.25s ease-in-out;
}

  /* Mega */

.download-btn-mega {
  position: relative;
  color: rgb(255, 255, 255);
  padding: 12px 24px;
  border: 3px solid rgb(255, 0, 0);
  border-radius: 15px;
  corner-shape: squircle;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 0 10px rgb(255, 0, 0);
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  background: transparent;
  background-image: url("../img/mega.webp");
  background-size: 260px;
  background-repeat: no-repeat;
  background-color: #000;
  background-position: center center;
  -webkit-text-stroke: 0.1px black;
}

.download-btn-mega::before {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  content: 'MEGA';
  color: #ffffff;
  position: absolute;
  align-items: center;
  align-content: center;
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: all 0.25s ease-in-out;
  border-radius: 15px;
  corner-shape: squircle;
  -webkit-text-stroke: 0.1px black;
}

.download-btn-mega:hover::before {
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.download-btn-mega:hover {
  background-color: #e0e0e0;
  border: 3px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  font-weight: bolder;
  text-shadow: 2px 2px 8px #000000;
  box-shadow: 0 0 5px rgb(0, 0, 0);
  transition: all 0.25s ease-in-out;
  background-size: 100px;
  -webkit-text-stroke: 0.4px rgb(0, 0, 0);
}

/* FIN DE BOTONES */




#downloadModal {
    display: none;
    position: fixed;
    z-index: 999; /* Subimos el z-index para tapar el menú */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo más oscuro */
    backdrop-filter: blur(5px); /* Efecto borroso moderno */
  }

.modal-content {
    background-color: #111; /* Fondo negro directo (no variable) */
    color: #fff; /* Texto blanco */
    padding: 30px;
    border-radius: 16px;
    width: 95%;
    max-width: 400px;
    border: 1px solid #333; /* Borde sutil */
    text-align: center;
    
    /* CENTRADO PERFECTO (Esto es lo que tiene la V2) */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* Quitamos el margen del 15% que se veía mal */
  }
  .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
  }
  .modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }
  .confirm-btn {
    background: var(--accent);
    color: white;
  }
  .cancel-btn {
    background: #f44336;
    color: white;
  }

  