/* ==========================================================================
   Contacto page (scoped) — layout, form panel, location map
   Enqueued only on the Contacto page via deg_is_contact_page().
   ========================================================================== */

/* --------------------------------------------------------------------------
   Editorial hero
   -------------------------------------------------------------------------- */

.deg-dark header.deg-contacto-hero > .deg-contacto-hero__grid {
	height: auto;
}

.deg-contacto-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

.deg-contacto-hero__meta-list {
	display: grid;
	gap: 1.5rem;
}

.deg-contacto-hero__meta-item {
	margin: 0;
}

.deg-contacto-hero__meta-item dt,
.deg-contacto-hero__meta-item dd {
	margin: 0;
}

@media (min-width: 1024px) {
	.deg-contacto-hero__grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
		gap: 4rem;
	}

	.deg-contacto-hero__meta {
		align-self: end;
		text-align: right;
	}

	.deg-contacto-hero__meta-list {
		justify-items: end;
	}
}

/* --------------------------------------------------------------------------
   Su proyecto — info + form
   -------------------------------------------------------------------------- */

.deg-contacto-project__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
	border-top: 1px solid var(--deg-border, rgba(255, 255, 255, 0.05));
	padding-top: 4rem;
}

@media (min-width: 1024px) {
	.deg-contacto-project__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 4rem;
		padding-top: 5rem;
	}
}

.deg-contacto-title-line {
	display: inline;
}

.deg-contacto-title-line::after {
	content: " ";
}

@media (min-width: 1024px) {
	.deg-contacto-title-line {
		display: block;
	}

	.deg-contacto-title-line::after {
		content: none;
	}
}

.deg-contacto-project__details {
	display: grid;
	gap: 0;
	margin-top: 2.5rem;
	max-width: 26rem;
}

.deg-contacto-detail {
	padding: 1.25rem 0;
	border-top: 1px solid var(--deg-border, rgba(255, 255, 255, 0.05));
}

.deg-contacto-detail:last-child {
	border-bottom: 1px solid var(--deg-border, rgba(255, 255, 255, 0.05));
}

.deg-contacto-detail__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--deg-muted-foreground, #b5b5b5);
}

.deg-contacto-detail__value,
.deg-contacto-detail__text {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--deg-foreground, #ffffff);
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.deg-contacto-detail__link {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.deg-contacto-detail__link:hover,
.deg-contacto-detail__link:focus-visible {
	color: #e1261c;
}

.deg-contacto-detail__link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #111111;
}

.deg-contacto-detail__text {
	color: var(--deg-muted-foreground, #b5b5b5);
}

/* --------------------------------------------------------------------------
   Form panel (existing architecture, dark restyle)
   -------------------------------------------------------------------------- */

.deg-contact-form {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: 1.5rem 1.25rem 1.75rem;
	border: 1px solid var(--deg-border, rgba(255, 255, 255, 0.08));
	background-color: #161616;
}

@media (min-width: 768px) {
	.deg-contact-form {
		padding: 2rem 1.75rem 2.25rem;
	}
}

@media (min-width: 1024px) {
	.deg-contact-form {
		padding: 2.25rem 2rem 2.5rem;
	}
}

.deg-contact-form__status {
	margin-bottom: 1.5rem;
	padding: 1rem 1.125rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.03);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--deg-foreground, #ffffff);
}

.deg-contact-form__status--success {
	border-color: rgba(74, 158, 98, 0.65);
	background-color: rgba(34, 84, 52, 0.28);
	color: #e8f5ec;
}

.deg-contact-form__status[role="alert"] {
	border-color: #e1261c;
}

.deg-contact-form__status p {
	margin: 0;
}

.deg-contact-form__status a {
	color: #e1261c;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.deg-contact-form__status a:hover,
.deg-contact-form__status a:focus-visible {
	color: #e1261c;
	text-decoration: underline;
}

.deg-contact-form__form {
	display: grid;
	gap: 1.5rem;
}

.deg-contact-form__grid {
	display: grid;
	gap: 1.5rem;
}

.deg-contact-form__grid--names,
.deg-contact-form__grid--contact {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.deg-contact-form__grid--names,
	.deg-contact-form__grid--contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.deg-contact-form__field {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
}

.deg-contact-form__field--checkbox {
	gap: 0;
}

.deg-contact-form__label {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--deg-foreground, #ffffff);
}

.deg-contact-form__required {
	color: #e1261c;
}

.deg-contact-form__input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0;
	background-color: transparent;
	color: var(--deg-foreground, #ffffff);
	font: inherit;
	line-height: 1.5;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.deg-contact-form__input::placeholder {
	color: #737373;
}

.deg-contact-form__input:focus {
	outline: none;
	border-bottom-color: #ffffff;
	box-shadow: 0 1px 0 0 #ffffff;
}

.deg-contact-form__textarea {
	min-height: 9rem;
	resize: vertical;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.deg-contact-form__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--deg-foreground, #ffffff);
}

.deg-contact-form__checkbox {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.2rem;
	accent-color: #e1261c;
}

.deg-contact-form__checkbox-text {
	min-width: 0;
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.deg-contact-form__link {
	color: #e1261c;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.deg-contact-form__link:hover,
.deg-contact-form__link:focus-visible {
	color: #e1261c;
	text-decoration: underline;
}

.deg-contact-form__actions {
	padding-top: 0.25rem;
}

.deg-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	min-width: 8.5rem;
	padding: 0.875rem 2.25rem;
	border: 0;
	border-radius: 0;
	background-color: var(--deg-foreground, #ffffff);
	color: var(--deg-background, #111111);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deg-contact-form__submit:hover,
.deg-contact-form__submit:focus-visible {
	background-color: #e1261c;
	color: #ffffff;
}

.deg-contact-form__submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #111111;
}

.deg-contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Location + static map panel
   -------------------------------------------------------------------------- */

.deg-contacto-location {
	border-top: 1px solid var(--deg-border, rgba(255, 255, 255, 0.05));
	padding-top: 4rem;
	padding-bottom: 5rem;
}

@media (min-width: 768px) {
	.deg-contacto-location {
		padding-top: 5rem;
		padding-bottom: 7rem;
	}
}

.deg-contacto-location__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.deg-contacto-location__grid {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 4rem;
		align-items: center;
	}
}

.deg-contacto-location__map-col {
	display: block;
	width: 100%;
	min-width: 0;
}

.deg-contacto-location__address {
	margin: 0;
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.deg-contacto-location__maps-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--deg-foreground, #ffffff);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 180ms ease;
}

.deg-contacto-location__maps-link:hover,
.deg-contacto-location__maps-link:focus-visible {
	color: #e1261c;
}

.deg-contacto-location__maps-link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #111111;
}

.deg-contacto-map-panel {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 16.5rem;
	min-height: 16.5rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background-color: #1a1a1a;
	color: inherit;
	text-decoration: none;
}

@media (min-width: 768px) {
	.deg-contacto-map-panel {
		height: 20rem;
		min-height: 20rem;
	}
}

@media (min-width: 1024px) {
	.deg-contacto-map-panel {
		height: 22rem;
		min-height: 22rem;
	}
}

.deg-contacto-map-panel:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #111111;
}

.deg-contacto-map-panel__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Restrained dark overlay — keep streets and marker readable. */
.deg-contacto-map-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.22);
	pointer-events: none;
}

@media (max-width: 480px) {
	.deg-contacto-map-panel {
		height: 14.5rem;
		min-height: 14.5rem;
	}
}
