/* ======================================================
   ESTILOS GENERALES
====================================================== */

body {
  background-color: #f1e8fb;
}

h1,
h3 {
  color: #343a40;
}

section {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
}

/* ======================================================
   TÍTULO PRINCIPAL
====================================================== */

.nombre-principal {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(to right, #4b0082, #f15df4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ======================================================
   BOTONES GENERALES
====================================================== */

.btn-custom {
  background-color: #6f42c1;
  color: #ffffff;
  border: none;
}

.btn-custom:hover {
  background-color: #59339d;
  color: #ffffff;
}

.btn-tema {
  background-color: #ffffff;
  color: #59339d;
  border: none;
  font-weight: bold;
}

.btn-tema:hover {
  background-color: #59339d;
  color: #ffffff;
}

/* ======================================================
   ICONOS REDES SOCIALES
====================================================== */

.icono-social {
  font-size: 1.8rem;
  color: #6f42c1;
  transition: color 0.3s ease;
}

.icono-social:hover {
  color: #59339d;
}

/* ======================================================
   LISTAS PERSONALIZADAS (HABILIDADES / EXPERIENCIA)
====================================================== */

.habilidad-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.experiencia-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.punto {
  width: 10px;
  height: 10px;
  background-color: #6f42c1;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ======================================================
   NAVBAR (MODO CLARO)
====================================================== */

.navbar-custom {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-nav {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #4b0082;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: rgba(155, 89, 182, 0.15);
  color: #4b0082;
}

.btn-tema-navbar {
  background: linear-gradient(135deg, #4b0082, #9b59b6);
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-tema-navbar i {
  font-size: 1.1rem;
}

.btn-tema-navbar:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ======================================================
   MODO OSCURO
====================================================== */

body.dark-mode {
  background-color: #1e1e2f;
  color: #f1f1f1;
}

body.dark-mode section {
  background-color: #2a2a40;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #3a3a55;
  color: #ffffff;
  border: 1px solid #555;
}

/* ======================================================
   NAVBAR (MODO OSCURO)
====================================================== */

body.dark-mode .navbar-custom {
  background-color: #1e1e2f;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

body.dark-mode .btn-nav {
  color: #e0d7ff;
}

body.dark-mode .btn-nav:hover {
  background: rgba(202, 168, 255, 0.15);
  color: #ffffff;
}

body.dark-mode .btn-tema-navbar {
  background: linear-gradient(135deg, #caa8ff, #9b59b6);
  color: #1e1e2f;
}

/* ======================================================
   NAVBAR TOGGLER EN MODO OSCURO
====================================================== */

body.dark-mode .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
