/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #003366;
  color: white;
  padding: 15px 30px;
  border-bottom: 4px solid #0055aa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

/* Main */
main {
  padding: 30px;
  max-width: 700px;
  margin: 40px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"] {
  padding: 12px 15px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  border-color: #0055aa;
  box-shadow: 0 0 8px rgba(0, 85, 170, 0.4);
  outline: none;
}

button {
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0055aa;
  transform: scale(1.02);
}

button:active {
  transform: scale(0.98);
}

/* Lista */
.lista {
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.lista h2 {
  margin-bottom: 15px;
  color: #003366;
  font-size: 22px;
  border-bottom: 2px solid #0055aa;
  padding-bottom: 5px;
}

.lista ul {
  list-style: none;
  padding-left: 0;
}

.lista li {
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #ffffff;
  border-left: 5px solid #0055aa;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.lista li:hover {
  background-color: #f0f8ff;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: 10px;
  }

  main {
    padding: 20px;
    margin: 20px;
  }

  button {
    font-size: 16px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #888;
  font-size: 14px;
}

/* Scrollbar personalizada (opcional) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
