body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #fff0f5;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #e91e63;
  color: white;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 26px;
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

nav ul li {
  display: inline-block;
  margin: 0 12px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffeb3b;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 35px;
  align-items: start;
}

#articulos {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#articulos h2 {
  color: #e91e63;
  font-size: 22px;
  margin-bottom: 8px;
}

#articulos h3 {
  color: #333;
  font-size: 18px;
  margin-top: 18px;
}

#articulos p {
  line-height: 1.5;
  font-size: 14px;
}

#articulos img {
  display: block;
  margin: 15px auto;
  max-width: 160px;
  border-radius: 8px;
}

#articulos a {
  color: #e91e63;
  text-decoration: none;
  font-weight: bold;
}

#articulos a:hover {
  text-decoration: underline;
}

aside#contacto {
  background-color: #ffe6ef;
  padding: 20px 25px;
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 440px; 
  transition: all 0.3s ease;
  align-self: start;
}

aside#contacto:hover {
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.25);
}

aside#contacto h2 {
  color: #e91e63;
  text-align: center;
  margin-top: 0;
  font-size: 20px;
}

aside#contacto p {
  text-align: center;
  margin-bottom: 16px;
  color: #555;
  font-size: 13px;
}

.registro-form label {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 13px;
}

.registro-form input[type="text"],
.registro-form input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: 2px solid #f8bbd0;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 3px rgba(233, 30, 99, 0.05);
}

.registro-form input::placeholder {
  color: #aaa;
  font-style: italic;
}

.registro-form input:focus {
  border-color: #e91e63;
  box-shadow: 0 0 5px rgba(233, 30, 99, 0.4);
  background-color: #fffafc;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 8px;
}

button {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  font-size: 13px;
  flex: 1;
}

button:hover {
  background-color: #c2185b;
}

footer {
  background-color: #e91e63;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  margin-top: auto;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  aside#contacto {
    max-width: 100%;
  }
}
