/* ==========================================================================
   Sección de Contacto (reutilizable: Home + página Contacto)
   ========================================================================== */
.mg-contact {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--mg-bg) url("../images/bio_section_3.png") center / cover no-repeat;
	padding: 130px 0 120px;
}
/* degradado oscuro para legibilidad del formulario */
.mg-contact::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(105deg, rgba(13,11,13,0.97) 0%, rgba(13,11,13,0.86) 48%, rgba(13,11,13,0.62) 100%),
		linear-gradient(to bottom, rgba(13,11,13,0.55), rgba(13,11,13,0.2) 38%, rgba(13,11,13,0.9));
}
/* grano sutil */
.mg-contact::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.04; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* En la página dedicada de Contacto, ocupa el viewport y centra el contenido */
.mg-contact--page { display: flex; align-items: center; min-height: 100vh; padding-top: 150px; }

.mg-contact__head { max-width: 720px; margin-bottom: 76px; }
.mg-contact__title {
	font-family: var(--mg-font-display);
	font-weight: 700;
	font-size: clamp(38px, 4.8vw, 66px);
	line-height: 1.02;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mg-white);
	margin: 22px 0 24px;
}
.mg-contact__lead {
	font-family: var(--mg-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--mg-muted);
	max-width: 560px;
}

.mg-contact__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 46px 64px;
}
.mg-contact__field { position: relative; }
.mg-contact__field::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 100%; height: 1px; background: var(--mg-yellow);
	transform: scaleX(0); transform-origin: left;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mg-contact__field:focus-within::after { transform: scaleX(1); }
.mg-contact__input {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	padding: 0 0 16px;
	color: var(--mg-white);
	font-family: var(--mg-font-body);
	font-size: 16px;
	outline: none;
}
.mg-contact__input::placeholder {
	font-family: var(--mg-font-narrow);
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.5);
	opacity: 1;
	transition: color 0.3s;
}
.mg-contact__input:focus::placeholder { color: rgba(255, 255, 255, 0.78); }
.mg-contact__input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	transition: background-color 9999s ease-in-out 0s;
}
.mg-contact__submit {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 22px;
}

@media (max-width: 720px) {
	.mg-contact__form { grid-template-columns: 1fr; gap: 40px; }
}

/* Honeypot anti-spam: fuera de pantalla (no display:none, que algunos bots detectan). */
.mg-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Mensaje de estado del envío. */
.mg-contact__status {
	grid-column: 1 / -1;
	margin: 6px 0 0;
	min-height: 1em;
	font-family: var(--mg-font-body);
	font-size: 15px;
	line-height: 1.5;
}
.mg-contact__status.is-ok { color: var(--mg-yellow); }
.mg-contact__status.is-error { color: #ff6b6b; }
