/* ==========================================================================
   Contacto
   --------------------------------------------------------------------------
   Estética del Home y Sobre mí: fondo crema, título grande en vino con la "C"
   en Parfumerie, textos en Inter Tight y líneas finas en el formulario.
   ========================================================================== */

.ans-contactpage {
	background: var(--ans-cream);
}

.ans-cp {
	--cp-wine: var(--ans-wine);
	--cp-pad: clamp(20px, 5.6vw, 110px);

	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* Espacio arriba: el trazo de la "C" no toca el menú. */
	padding: clamp(120px, 12vw, 210px) var(--cp-pad) clamp(56px, 7vw, 120px);
	color: #000;
}

@supports (height: 100svh) {
	.ans-cp {
		min-height: 100svh;
	}
}

/* Título a todo el ancho (contact-page.js ajusta el tamaño). */
.ans-home .ans-cp__title {
	display: flex;
	justify-content: center;
	margin: 0;
	font-size: 15vw;
	font-weight: 400;
	line-height: 0.9;
	color: var(--cp-wine);
	white-space: nowrap;
}

.ans-cp__title > span {
	display: inline-flex;
	align-items: baseline;
}

.ans-cp__script {
	font-family: var(--ans-font-script);
	font-size: 1.55em;
	line-height: 0;
	margin-right: 0.04em;
}

.ans-cp__sans {
	font-family: var(--ans-font-sans);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ans-cp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	column-gap: 6vw;
	margin-top: clamp(40px, 5vw, 90px);
}

/* Datos de contacto. */
.ans-home .ans-cp__info {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
	font-size: var(--ans-text);
	line-height: 1.4;
}

.ans-home .ans-cp__link,
.ans-home .ans-cp__link:visited,
.ans-home .ans-cp__link:hover,
.ans-home .ans-cp__link:focus {
	position: relative;
	color: #000;
	text-decoration: none;
	background: none;
}

.ans-cp__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.1em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.4s var(--ans-ease);
}

.ans-cp__link:hover::after,
.ans-cp__link:focus-visible::after {
	transform: scaleX(1);
}

/* Formulario. */
.ans-cp__form {
	display: flex;
	flex-direction: column;
	gap: 1.6em;
	font-size: var(--ans-text);
}

.ans-cp__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ans-home .ans-cp__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ans-cp__legend,
.ans-cp__label--strong {
	padding: 0;
	font-weight: 600;
	font-size: 1em;
}

.ans-cp__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.4em;
	margin-top: 0.8em;
}

.ans-cp__field {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.ans-cp__label {
	font-size: 0.92em;
}

.ans-home .ans-cp__input,
.ans-home .ans-cp__input:focus {
	width: 100%;
	padding: 0.45em 0;
	font: inherit;
	color: #000;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #000;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	transition: border-color 0.3s;
}

.ans-home .ans-cp__input:focus {
	border-bottom-color: var(--cp-wine);
	box-shadow: 0 1px 0 var(--cp-wine);
}

.ans-cp__textarea {
	resize: vertical;
	min-height: 3.2em;
}

.ans-home .ans-cp__submit,
.ans-home .ans-cp__submit:hover,
.ans-home .ans-cp__submit:focus {
	align-self: flex-start;
	padding: 0.85em 2.4em;
	font-family: var(--ans-font-sans);
	font-weight: 600;
	font-size: var(--ans-text-sm);
	letter-spacing: var(--ans-tracking);
	text-transform: uppercase;
	color: var(--ans-cream);
	background: var(--cp-wine);
	border: 2px solid var(--cp-wine);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.35s var(--ans-ease), color 0.35s var(--ans-ease);
}

.ans-home .ans-cp__submit:hover,
.ans-home .ans-cp__submit:focus-visible {
	color: var(--cp-wine);
	background: transparent;
}

.ans-cp__notice {
	padding: 0.8em 1.1em;
	font-size: 0.92em;
	border-radius: 10px;
	background: rgba(107, 28, 41, 0.08);
	color: var(--cp-wine);
}

.ans-cp__notice--enviado {
	background: rgba(184, 206, 222, 0.45);
	color: #000;
}

@media (max-width: 767px) {
	.ans-cp {
		padding-top: 100px;
	}

	.ans-cp__grid {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}
}
