/* === FUENTE DE LA PAGINA === */
body {
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: #111; /* o el color que prefieras para el texto */
  margin: 0 !important;
  padding: 0 !important;

}


body.modo-noche {
  outline: 2px solid #00bfff;
}


/* === LOGO EN TÍTULO === */
.titulo::before {
  content: "";
  display: inline-block;
  width: 128px;
  height: 128px;
  background-image: url('favicon.ico');
  background-size: cover;
  margin-right: 8px;
}

/* === MENÚ PRINCIPAL === */
#sddm {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  background: transparent;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

#sddm li {
  list-style: none;
}

#sddm li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 4px 0;
  line-height: 1.4;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.1s ease;
}

/* === SUBMENÚ === */
#sddm div {
  position: absolute;
  visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 10px 0;
  min-width: 220px;
  z-index: 100;
  transition: opacity 0.1s ease;
}

#sddm div a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  transition: all 0.1s ease;
  border-radius: 4px;
}

/* === MODO DÍA === */
body.modo-dia {
  background-color: #f5f7fa;
  color: #111;
}

body.modo-dia #sddm li a {
  background: linear-gradient(135deg, #2875DE, #A9CAF1);
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.modo-dia #sddm li a:hover {
  background: linear-gradient(135deg, #A9CAF1, #2875DE);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(40, 117, 222, 0.6);
}

body.modo-dia #sddm div {
  background: #fff;
}

body.modo-dia #sddm div a {
  background: #fff;
  color: #111;
}

body.modo-dia #sddm div a:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
  text-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

/* === MODO NOCHE === */
body.modo-noche {
  background-color: #1e1e1e;
  color: #eee;
}

body.modo-noche #sddm li a {
  background: linear-gradient(135deg, #0085B2, #004C66);
  color: #E0ECFF;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

body.modo-noche #sddm li a:hover {
  background: linear-gradient(135deg, #004C66, #0085B2);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(180, 220, 255, 0.4);
  animation: resplandor 1.2s ease-in-out infinite;
}

body.modo-noche #sddm div {
  background: #004C66;
}

body.modo-noche #sddm div a {
  background: transparent;
  color: #E0ECFF;
}

body.modo-noche #sddm div a:hover {
  background: rgba(40, 117, 222, 0.2);
  color: #AFCFFF;
  box-shadow: 0 0 12px rgba(180, 220, 255, 0.4);
  text-shadow: 0 0 6px rgba(40, 117, 222, 0.4);
}

/* === TOGGLE MODO DÍA/NOCHE === */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.toggle-label {
  margin-right: 10px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
}

.toggle-switch {
  position: relative;
  width: 45px;
  height: 22px;
  background: #ccc;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.modo-noche .toggle-switch {
  background: #2875DE;
}

body.modo-noche .toggle-switch::before {
  transform: translateX(22px);
}

/* === TEXTO GENERAL === */
body p {
  text-align: center;
}

@keyframes resplandor {
  0% { box-shadow: 0 0 12px rgba(180, 220, 255, 0.4); }
  50% { box-shadow: 0 0 16px rgba(180, 220, 255, 0.6); }
  100% { box-shadow: 0 0 12px rgba(180, 220, 255, 0.4); }
}

body.modo-noche #sddm li a:hover {
  animation: resplandor 1.2s ease-in-out infinite;
}