*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #9DA8FA;
  line-height: 1.6;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 91.666%;
  max-width: 960px;
  background-color: #fff;
  padding: 2rem;
  margin: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Sección principal */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2rem;
}

.hero-title {
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-logo {
  order: -1;
}

.hero-logo img {
  width: 100%;
  height: auto;
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
}

/* Enlaces */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.links ul {
  list-style: none;
  text-align: center;
}

.links li {
  padding: 0.5rem 0;
}

.links a {
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}

.links a:hover,
.links a:focus {
  color: #14b8a6;
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Proyectos */
.projects-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.projects ul {
  list-style: none;
}

.projects li {
  margin-bottom: 1rem;
}

.projects li:last-child {
  margin-bottom: 0;
}

.projects a {
  font-weight: 600;
  color: #0d5f58;
  text-decoration: none;
}

.projects a:hover,
.projects a:focus {
  color: #14b8a6;
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 2px;
}

.projects p {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #333;
}

/* Nota */
.note-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.note-text {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Responsive: tablet y superior */
@media (min-width: 768px) {
  .card {
    width: 75%;
    padding: 5rem;
    margin: 1.75rem;
  }

  .hero-text {
    font-size: 1.25rem;
  }

  .note-text {
    font-size: 1.25rem;
  }

  .links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .links ul {
    display: flex;
    gap: 0.75rem;
  }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #3b42a0;
  }

  .card {
    background-color: #1e1e2e;
    color: #e0e0e0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  }

  .links a {
    color: #5eead4;
  }

  .links a:hover,
  .links a:focus {
    color: #99f6e4;
    outline-color: #99f6e4;
  }

  .projects a {
    color: #5eead4;
  }

  .projects a:hover,
  .projects a:focus {
    color: #99f6e4;
    outline-color: #99f6e4;
  }

  .projects p {
    color: #a0a0b0;
  }
}

/* Responsive: desktop */
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 300px;
  }

  .hero-logo {
    order: 0;
    margin-left: 0;
  }

  .hero-text-full {
    grid-column: 1 / -1;
  }
}
