/* ===== BASE GENERAL ===== */
body {
  margin: 0;
  font-family: 'Space Mono', monospace;
  background-color: #1e1b3a;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ===== SIDEBAR DESKTOP ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #3d2b60;
  z-index: 1040;
}

.avatar-img {
  border-radius: 50%;
  width: 80%;
}

.nav-link {
  color: rgb(188, 72, 206);
  font-weight: bold;
  font-size: 22px;
  margin-top: 8px;
  transition: 0.3s;
}

.nav-link:hover {
  color: #0ff;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.btn-hamburguesa {
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: #3d2b60;
  color: rgb(188, 72, 206);
  border: none;
  font-size: 1.6rem;
  z-index: 1060;
  padding: 6px 10px;
  border-radius: 5px;
}

/* ===== SIDEBAR MOVIL - OFFCANVAS ===== */
.bg-sidebar {
  background-color: #3d2b60;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  padding: 2rem 1rem;
  margin-left: 0;
}

@media (min-width: 768px) {
  .main-content {
    margin-left: 220px;
    padding-left: 80px;
    padding-right: 40px;
  }
}

/* ===== SECCIONES GENERALES ===== */
.seccion-general {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 150px;
}

.contenido {
  padding-top: 160px;
}

.titulo {
  color: rgb(188, 72, 206);
  font-weight: bold;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.descripcion {
  font-size: 1.4rem;
  color: #0ff;
  margin-bottom: 1rem;
}

.contacto {
  margin-bottom: 1.2rem;
  font-family: monospace;
  font-size: 0.95rem;
  color: #e0e0e0;
}

#logo1,
#correo {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

#logo1:hover {
  color: #00d4ff;
  transform: scale(1.15);
  text-shadow: 4px 4px 12px rgba(0, 212, 255, 0.8);
  cursor: pointer;
}

#correo:hover {
  color: #67bfd1;
  text-shadow: 4px 4px 12px rgba(0, 212, 255, 0.8);
  cursor: pointer;
}

/* ===== BOTÓN CV + REDES SOCIALES ===== */
.cv-social-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 767px) {
  .cv-social-container {
    align-items: center;
  }
}

.btn-cv {
  background-color: rgb(188, 72, 206);
  color: white;
  font-weight: bold;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-bottom: 10px;
}

.btn-cv:hover {
  background-color: #00d4ff;
  color: #1e1b3a;
}

.social-icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.icon-link {
  color: rgb(188, 72, 206);
  font-size: 2rem;
  transition: color 0.3s, transform 0.3s;
}

.icon-link:hover {
  color: #00d4ff;
  transform: scale(1.2);
}

/* ===== SOBRE MÍ ===== */
.subtitulo-seccion {
  font-size: 2rem;
  color: rgb(188, 72, 206);
  font-weight: bold;
}

.texto-sobremi {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.frase-destacada {
  font-style: italic;
  font-size: 1.1rem;
  color: #0ff;
  border-left: 4px solid #0ff;
  padding-left: 1rem;
}

.link-contacto {
  color: #00d4ff;
  text-decoration: underline;
}

.link-contacto:hover {
  color: rgb(188, 72, 206);
}

/* ===== EDUCACIÓN ===== */
.educacion .titulo-educacion {
  font-weight: bold;
  color: #c767f8;
  font-size: 1.2rem;
}

.educacion-item {
  border-left: 4px solid #00f0ff;
  padding-left: 15px;
}

/* ===== PORTAFOLIO ===== */
.card-dark {
  background-color: #2b2346;
  color: #e0e0e0;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card-dark:hover {
  transform: scale(1.03);
}

.card-title {
  color: rgb(188, 72, 206);
  font-weight: bold;
  font-size: 1.3rem;
}

.card-text {
  flex-grow: 1;
  font-size: 1rem;
}

.img-preview {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 180px;
  object-fit: cover;
}

/* ===== SKILLS ===== */
.btn-skill {
  background-color: #2b2346;
  color: #0ff;
  border: 1px solid #0ff;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.btn-skill:hover {
  background-color: #00d4ff;
  color: #1e1b3a;
  border-color: #00d4ff;
}

.categoria-skill {
  color: rgb(188, 72, 206);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.footer {
  background-color: #2b2346;
  color: #e0e0e0;
  font-size: 0.95rem;
  border-top: 2px solid rgb(188, 72, 206);
}

.icon-link-footer {
  color: rgb(188, 72, 206);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s, transform 0.3s;
}

.icon-link-footer:hover {
  color: #00d4ff;
  transform: scale(1.2);
}
.seccion-general.skills {
  margin-bottom: 250px; 
}


.btn-toggle-theme {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background-color: #3d2b60;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Estilos para modo claro */
body.light-mode {
  background-color: #f4f4f4;
  color: #1e1b3a;
}

body.light-mode .sidebar,
body.light-mode .bg-sidebar {
  background-color: #e0d9f7;
}

body.light-mode .nav-link {
  color: #7e1f9c;
}

body.light-mode .nav-link:hover {
  color: #333;
}

body.light-mode .btn-cv {
  background-color: #7e1f9c;
  color: white;
}

body.light-mode .btn-cv:hover {
  background-color: #1e1b3a;
  color: white;
}

body.light-mode .card-dark {
  background-color: #fff;
  color: #1e1b3a;
}

body.light-mode .btn-skill {
  background-color: #e0d9f7;
  color: #1e1b3a;
  border-color: #1e1b3a;
}

body.light-mode .btn-skill:hover {
  background-color: #7e1f9c;
  color: white;
  border-color: #7e1f9c;
}
/* Corrección para el modo claro - correo */
body.light-mode #correo {
  color: #1e1b3a; /* texto oscuro */
  text-shadow: none; /* elimina el resplandor del modo oscuro */
}

body.light-mode #correo:hover {
  color: #7e1f9c;
  text-shadow: none;
}

/* (Opcional) si también quieres ajustar #logo1 */
body.light-mode #logo1 {
  color: #1e1b3a;
  text-shadow: none;
}

body.light-mode #logo1:hover {
  color: #7e1f9c;
  transform: scale(1.15);
  text-shadow: none;
  cursor: pointer;
}
body.light-mode .contacto {
  color: #555; /* gris oscuro, visible en fondo claro */
}
