body {
  font-family: 'Inter', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(135deg, #6a5acd, #7b68ee);
  color: white;
  text-align: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px;
}

.page-shell {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

header p {
  margin: 0 auto 32px;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects li {
  margin: 0;
}

.projects a,
.button-link {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.28);
  padding: 18px 28px;
  border-radius: 14px;
  display: inline-block;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  width: 100%;
  box-sizing: border-box;
}

.projects a:hover,
.button-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.button-link {
  background: linear-gradient(135deg, #ff9a46, #ff6a95);
  font-weight: 600;
}

.button-link:hover {
  background: linear-gradient(135deg, #ffb06b, #ff88ab);
}

/* --- Contact Section Styles --- */
.contact-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.15);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff9a46;
  background: rgba(0, 0, 0, 0.25);
}

.submit-btn {
  background: linear-gradient(135deg, #6a5acd, #7b68ee);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #7b68ee, #8e7df0);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* Media query para pantallas de 768px o más (tablet/desktop) */
@media (min-width: 768px) {
  .page-shell {
    padding: 32px 40px;
  }

  .projects {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .projects li {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .projects a,
  .button-link {
    width: auto;
  }
}