/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ESTILO GENERAL ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.main-header {
  background-color: #1e3d58;
  color: white;
  padding: 20px;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.main-nav a {
  text-decoration: none;
  color: #aad8d3;
}

.main-nav a:hover {
  color: rgb(19, 138, 164);
  text-decoration: underline;
}

.section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: rgb(19, 138, 164);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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: #1e3d58;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #16324b;
}

.main-footer {
  background-color: #1e3d58;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}


/* ===== GENERAL ===== */
body {
  background-color: #35516c;
  color: #333;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.section,
header,
footer,
input,
textarea,
button {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}

/* ===== MODO OSCURO ===== */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .section {
  background-color: #1e1e1e;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode section .project-card {
  background-color: #1e1e1e;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode aside {
  background-color: #1c1c1c;
}

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: #3949ab;
}

/* ===== BOTÓN DE SWITCH ===== */
.toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 16px;
  background-color: #1e3d58;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
}

.toggle-btn:hover {
  background-color: #16324b;
}



/* ASIDE */
.cover {
  background-color: #487cac;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 935px;
}

.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: #487cac;
  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;
  background: #487cac;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  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: #333;
  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: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: #005fa3;
}