/* --- Resaltar y deshabilitar links sin ocultarlos --- */
#main-content.hide-links a,
.navbar.hide-links a {
  pointer-events: none !important;
  color: black !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  cursor: default !important;
  user-select: text !important;
  background-color: yellow; /* Opcional, para resaltar */
}


/* --- Diseño foto de perfil --- */
.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #003366;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Diseño skills con colores pastel y hover --- */
.skills-list {
  list-style-type: none;
  padding: 0;
  margin: 0 auto 2rem auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skills-list li {
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  user-select: none;
}

/* Colores pastel para cada ítem */
.skills-list li:nth-child(1)  { background-color: #ffd6d6; color: #a83232; }
.skills-list li:nth-child(2)  { background-color: #d6f0ff; color: #2a6bbf; }
.skills-list li:nth-child(3)  { background-color: #d6ffd9; color: #2b7a32; }
.skills-list li:nth-child(4)  { background-color: #fff4d6; color: #b48f2b; }
.skills-list li:nth-child(5)  { background-color: #e7d6ff; color: #6139a8; }
.skills-list li:nth-child(6)  { background-color: #ffd9e7; color: #a83972; }
.skills-list li:nth-child(7)  { background-color: #d6fff7; color: #2b9aa8; }
.skills-list li:nth-child(8)  { background-color: #f5d6ff; color: #7a2b9f; }
.skills-list li:nth-child(9)  { background-color: #ffe5d6; color: #b4582b; }
.skills-list li:nth-child(10) { background-color: #d6f7ff; color: #2b7fa8; }
.skills-list li:nth-child(11) { background-color: #f0ffd6; color: #7a9f2b; }
.skills-list li:nth-child(12) { background-color: #ffd6f5; color: #a82b79; }
.skills-list li:nth-child(13) { background-color: #d6dfff; color: #2b49a8; }
.skills-list li:nth-child(14) { background-color: #fff6d6; color: #a87a2b; }
.skills-list li:nth-child(15) { background-color: #d6fff2; color: #2b9f7a; }
.skills-list li:nth-child(16) { background-color: #f5d6d6; color: #9f2b2b; }
.skills-list li:nth-child(17) { background-color: #e6d6ff; color: #6b2ba8; }
.skills-list li:nth-child(18) { background-color: #d6f1ff; color: #2b76a8; }
.skills-list li:nth-child(19) { background-color: #ffd6d6; color: #a83232; }

.skills-list li:hover,
.skills-list li:focus {
  background-color: #003366;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 51, 102, 0.15);
  outline: none;
}

/* --- Mejoras para las otras secciones --- */

main section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cambiar fuente según la familia establecida por JS */
body[style*="Times New Roman"] main section {
  font-family: 'Times New Roman', serif !important;
}

body[style*="Courier New"] main section {
  font-family: 'Courier New', monospace !important;
}

/* Títulos de sección */
main section h2 {
  font-size: 1.8rem;
  color: #003366;
  border-bottom: 3px solid #003366;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* Texto Sobre mí */
#about-1, #about-2 {
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #444;
  transition: color 0.3s ease;
}

/* Lista proyectos */
#projects-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
}

#projects-list li {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#projects-list li a.project-link {
  font-weight: 700;
  color: #003366;
  text-decoration: none;
  transition: color 0.25s ease;
}

#projects-list li a.project-link:hover,
#projects-list li a.project-link:focus {
  color: #0059b3;
  text-decoration: underline;
}

/* Contacto */
.contact-info p {
  font-size: 1.05rem;
  margin: 0.3rem 0;
  color: #222;
  transition: color 0.3s ease;
}

.contact-info strong {
  color: #003366;
  transition: color 0.3s ease;
}

.contact-info a.link-text {
  color: #0073e6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a.link-text:hover,
.contact-info a.link-text:focus {
  color: #0059b3;
  text-decoration: underline;
}

/* Educación */
#education-text {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

/* Responsividad */
@media (max-width: 600px) {
  main section {
    padding: 1rem 1.2rem;
  }

  main section h2 {
    font-size: 1.5rem;
  }

  #projects-list li {
    font-size: 0.95rem;
  }

  .contact-info p {
    font-size: 1rem;
  }
}

/* ======== MODO OSCURO ======== */
body.dark-mode main section {
  background-color: #1e1e2f;
  color: #ddd;
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

body.dark-mode main section h2 {
  color: #86b7ff;
}

body.dark-mode #about-1,
body.dark-mode #about-2,
body.dark-mode #projects-list li,
body.dark-mode .contact-info p,
body.dark-mode .contact-info strong,
body.dark-mode #education-text {
  color: #ccc;
}

body.dark-mode #projects-list li {
  border-color: #444;
}

body.dark-mode #projects-list li a.project-link {
  color: #86b7ff;
}

body.dark-mode #projects-list li a.project-link:hover,
body.dark-mode #projects-list li a.project-link:focus {
  color: #a1c4ff;
}

/* ======== ALTO CONTRASTE ======== */
body.high-contrast main section {
  background-color: #000 !important;
  color: #ff0 !important; /* Amarillo para máximo contraste */
  box-shadow: none !important;
  border: 2px solid #ff0 !important;
}

body.high-contrast main section h2 {
  color: #ff0 !important;
  border-color: #ff0 !important;
}

body.high-contrast #about-1,
body.high-contrast #about-2,
body.high-contrast #projects-list li,
body.high-contrast .contact-info p,
body.high-contrast .contact-info strong,
body.high-contrast #education-text {
  color: #ff0 !important;
}

body.high-contrast #projects-list li {
  border-color: #ff0 !important;
}

body.high-contrast #projects-list li a.project-link {
  color: #ff0 !important;
  text-decoration: underline !important;
}

body.high-contrast #projects-list li a.project-link:hover,
body.high-contrast #projects-list li a.project-link:focus {
  color: #fff !important;
  background-color: #ff0 !important;
}

/* Botón traducir */
#translate-btn {
  margin: 1rem auto;
  display: block;
  padding: 0.5rem 1rem;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
#translate-btn:hover {
  background-color: #003366; /* Azul oscuro */
  color: white;
}
.dark-mode #translate-btn {
  background: #000;
  border-radius: 10px;
  border: 2px solid white;
}

.high-contrast #translate-btn {
  background: #000;
  border-radius: 10px;
  border: 2px solid yellow;
  color: yellow !important;
}

