/* ===== CONTACTO (alineado al ancho de las otras secciones) ===== */
#contacto {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.contact {
  width: 100%;
  max-width: 1200px; /* mismo ancho que Sobre mí y Proyectos */
  margin: 0 auto;
}

.contact .muted { color: var(--muted); margin: 8px 0 16px; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 28px);
}

/* Columna izquierda */
.contact__info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
}

.contact__list {
  list-style: none;
  margin: 10px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact__list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.cl__label {
  color: var(--muted);
  font-size: 12px;
  align-self: center;
}

.cl__value {
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.contact__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact__social a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.contact__social a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
}

/* Columna derecha (formulario) */
.contact__form {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__form h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
  font-size: 14px;
}

.field textarea { resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #9f9f9f; }

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06) inset;
  background: rgba(255, 255, 255, .08);
}

.btn-primary {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .12);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .16);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.cf-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
}

.hp { display: none !important; }

/* Responsive */
@media (max-width: 980px) {
  .contact__grid { grid-template-columns: 1fr; }
}
