/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ESTILO GENERAL ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}
 
.logo {
  max-width: 75px;
  border-radius: 50%;
  margin-right: 20px;

  /* Borde con un tono dorado suave */
  border: 3px solid #ffdf00;

  /* Efecto Neón Dorado: 
     1. Resplandor interno (le da profundidad)
     2. Resplandor externo intenso (cerca del borde)
     3. Brillo atmosférico (más suave y amplio) */
  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(212, 175, 55, 0.3);

  /* Suaviza la transición si decides agregarle un hover */
  transition: all 0.3s ease-in-out;
}

/* Efecto al pasar el mouse para un toque extra de clase */
.logo:hover {
  border-color: #fff;
  /* El borde se ilumina a blanco */
  box-shadow:
    inset 0 0 10px #ffdf00,
    0 0 20px #ffdf00,
    0 0 200px #d4af37;
  /* 0 0 50px #d4af37; */
  transform: scale(1.05);
}

.main-header {
  background-color: #1c1c1c;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(212, 175, 55, 0.3);

  /* Suaviza la transición si decides agregarle un hover */
  transition: all 0.3s ease-in-out;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  background: linear-gradient(145deg, #FFD700, #D4AF37);
  /* dorado degradado */
  color: #0a0a0a;
  /* texto oscuro que resalta sobre dorado */
  padding: 10px 18px;
  border-radius: 6px;

  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(212, 175, 55, 0.3);

  transition: all 0.3s ease-in-out;
}

.main-nav a:hover {
  background: linear-gradient(145deg, #ffdf00, #f5e79e);
  /* dorado más brillante */
  color: #1a1a1a;
  /* texto aún más oscuro para contraste */
  box-shadow:
    inset 0 0 10px #ffdf00,
    0 0 20px #ffdf00,
    0 0 50px #d4af37;
  transform: scale(1.05);
}

.section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 10px;
  background-color: #1e1e1e;
  /* box-shadow: 0 0 8px rgba(255, 255, 255, 0.05); */
  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(212, 175, 55, 0.3);

  /* Suaviza la transición si decides agregarle un hover */
  transition: all 0.3s ease-in-out;
}

/* Efecto al pasar el mouse para un toque extra de clase */
.section:hover {
  border-color: #fff;
  /* El borde se ilumina a blanco */
  box-shadow:
    inset 0 0 10px #ffdf00,
    0 0 20px #ffdf00,
    0 0 50px #d4af37;
  transform: scale(1.05);
}

form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

input,
textarea,
button {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background-color: #060606;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #060606;
}

.main-footer {
  background-color: #1c1c1c;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

.section,
header,
footer,
input,
textarea,
button {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}

/* ===== MODO OSCURO / CLARO ===== */
body.dark-mode {
  background-color: #35516c;
  color: #171717;
}

body.dark-mode .section {
  background: rgb(19, 138, 164);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(212, 175, 55, 0.3);

  /* Suaviza la transición si decides agregarle un hover */
  transition: all 0.3s ease-in-out;
}

/* Efecto al pasar el mouse para un toque extra de clase */
body.dark-mode .section:hover {
  border-color: #fff;
  /* El borde se ilumina a blanco */
  box-shadow:
    inset 0 0 10px #ffdf00,
    0 0 20px #ffdf00,
    0 0 200px #d4af37;
  /* 0 0 50px #d4af37; */
  transform: scale(1.05);
}


body.dark-mode section .project-card {
  background: #487cac;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode aside {
  background-color: #1e3d58;
}

body.dark-mode .main-nav a {
  color: #90caf9;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #2c2c2c;
  color: #eee;
  border-color: #444;
}

body.dark-mode button {
  background-color: #060606;
}

/* ===== BOTÓN DE SWITCH ===== */
.toggle-btn {
  position: fixed; /* siempre flotante */
  top: 20px;
  left: 50%;
  padding: 10px 16px;
  background-color: #1e3d58;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: grab; /* indica que se puede arrastrar */
  z-index: 1000;
}

.toggle-btn:active {
  cursor: grabbing;
}

.toggle-btn:hover {
  background-color: #16324b;
}

/* En pantallas pequeñas */
@media (max-width: 768px) {
  .toggle-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
}

/* ASIDE */
.cover {

  box-shadow:
    inset 0 0 8px rgba(255, 223, 0, 0.5),
    0 0 12px #ffdf00,
    0 0 25px #d4af37,
    0 0 40px rgba(206, 192, 146, 0.3);

  /* Suaviza la transición si decides agregarle un hover */
  transition: all 0.3s ease-in-out;
}

/* Efecto al pasar el mouse para un toque extra de clase */
.cover:hover {
  border-color: #fff;
  /* El borde se ilumina a blanco */
  box-shadow:
    inset 0 0 10px #ffdf00,
    0 0 20px #ffdf00,
    0 0 200px #d4af37;
  /* 0 0 50px #d4af37; */
  transform: scale(1.05);
}

.cover-img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.cover-img:hover {
  transform: scale(1.05);
}

/* MODULES */
.modules {
  background-color: #2c2c2c;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 330px;
}

.modules-img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.modules-img:hover {
  transform: scale(1.05);
}

/* TARJETAS DE PROYECTOS */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin: 0;
  color: #02050b;
  font-size: 1.4em;
}

.project-content p {
  margin: 10px 0;
  line-height: 1.5;
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.project-details li {
  margin-bottom: 5px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #060606;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: #060606;
}

.project-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.project-qr input {
  margin: 8px 0;
}

.project-qr button {
  margin-top: 15px;
  padding: 10px 20px;
  cursor: pointer;
}

