/* ==============================
   Bloque: Contacto
   Desktop-first
   ============================== */

.hco-bloque {
	box-sizing: border-box;
	--hco-header-offset: 0px;
	padding: 0 0 100px;
	width: 100%;
}

.hco-bloque--page-contacto {
	padding-top: calc(var(--hco-header-offset, 0px) + 80px);
}

.hco-bloque *,
.hco-bloque *::before,
.hco-bloque *::after {
	box-sizing: border-box;
}

.hco-inner {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 45px;
	align-items: flex-start;
}

/* ---- Columna info ---- */
.hco-col--info {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hco-volanta {
	display: inline-block;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: -0.12px;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-rojo-principal);
	margin-bottom: 0;
	line-height: 1.35;
}

.hco-titulo {
	font-family: var(--wp--preset--font-family--soho-gothic-pro);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.96px;
	margin: 0;
	color: var(--wp--preset--color--custom-negro);
}

.hco-bajada {
	font-family: var(--wp--preset--font-family--inter-display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 65px;
	color: var(--wp--preset--color--custom-gris);
	max-width: 608px;
}

/* ---- Oficinas ---- */
.hco-oficinas {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hco-oficina {
	display: flex;
	flex-direction: column;
	gap: 15px;
	background-color: #f5f6f8;
	border-radius: 2px;
	padding: 38px 25px 37px;
}

/* Tag: bandera + país */
.hco-oficina__tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background-color: var(--wp--preset--color--custom-blanco);
	border-radius: 2px;
	padding: 3px 6px;
	width: fit-content;
}

.hco-oficina__bandera {
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.hco-oficina__bandera img {
	display: block;
	width: 18px;
	height: 12px;
}

.hco-oficina__pais {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -0.12px;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-negro);
	line-height: 1.35;
}

.hco-oficina__tipo {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.14px;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-negro);
	line-height: 1.35;
}

.hco-oficina__dir {
	font-family: var(--wp--preset--font-family--inter-display);
	font-size: 16px;
	line-height: 1.45;
	margin: 0;
	color: var(--wp--preset--color--custom-negro);
	opacity: 0.8;
}

.hco-oficina__contacto {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hco-oficina__tel,
.hco-oficina__email {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--custom-negro);
	text-decoration: none;
	transition: color 0.3s ease;
	line-height: 1.35;
	padding-top: 5px;
}

.hco-oficina__email {
	color: var(--wp--preset--color--custom-rojo-principal);
}

.hco-oficina__tel:hover {
	color: var(--wp--preset--color--custom-rojo-principal);
}

.hco-oficina__email:hover {
	opacity: 0.8;
}

/* ---- WhatsApp ---- */
.hco-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 600;
	color: #25D366;
	text-decoration: none;
	transition: opacity 0.3s ease;
	margin-top: 8px;
}

.hco-whatsapp:hover {
	opacity: 0.8;
}

/* ---- Columna formulario ---- */
.hco-col--form {
	display: flex;
	flex-direction: column;
}

.hco-form-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -0.12px;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-negro);
	background-color: #e7e7e7;
	padding: 7px 11px;
	width: fit-content;
	line-height: 1.35;
}

.hco-form-label__arrow {
	width: 8px;
	height: 10px;
	flex-shrink: 0;
}

.hco-form-body {
	border: 1px solid var(--wp--preset--color--custom-gris);
	border-radius: 2px;
	padding: 49px 55px 42px;
	display: flex;
	flex-direction: column;
}

.hco-gf-fallback {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	color: var(--wp--preset--color--custom-gris);
}

/* ---- Estilos Gravity Forms override ---- */
.hco-gf-wrap .gform_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.hco-gf-wrap .gform_wrapper .gform_body .gform_fields .gfield {
	margin-bottom: 15px !important;
}



.hco-gf-wrap .gform_wrapper .gform_fields_1 .gfield {
	margin-bottom: 0 !important;
}

.hco-gf-wrap .gform_wrapper .gfield_label {
	font-family: var(--wp--preset--font-family--jetbrains-mono) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: -0.14px !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--custom-negro) !important;
	opacity: 0.5 !important;
	margin-bottom: 7px !important;
	line-height: 1.35 !important;
}

.hco-gf-wrap .gform_wrapper .gfield_required {
	display: none !important;
}

.hco-gf-wrap .gform_wrapper .hco-required-indicator {
	display: inline-block !important;
	margin-left: 1px;
	position: relative;
	top: -2px;
}

.hco-gf-wrap .gform_wrapper input[type="text"],
.hco-gf-wrap .gform_wrapper input[type="email"],
.hco-gf-wrap .gform_wrapper input[type="tel"],
.hco-gf-wrap .gform_wrapper textarea,
.hco-gf-wrap .gform_wrapper select {
	width: 100% !important;
	height: 57px !important;
	padding: 12px 20px !important;
	border: 1px solid rgba(51, 51, 51, 0.2) !important;
	border-radius: 2px !important;
	font-family: var(--wp--preset--font-family--inter-display) !important;
	font-size: 18px !important;
	color: var(--wp--preset--color--custom-negro) !important;
	background: var(--wp--preset--color--custom-blanco) !important;
	transition: border-color 0.3s ease !important;
	box-sizing: border-box !important;
	line-height: 1.35 !important;
}

.hco-gf-wrap .gform_wrapper textarea {
	height: 162px !important;
	resize: none !important;
}

.hco-gf-wrap .gform_wrapper input:focus,
.hco-gf-wrap .gform_wrapper input:focus-visible,
.hco-gf-wrap .gform_wrapper textarea:focus,
.hco-gf-wrap .gform_wrapper textarea:focus-visible,
.hco-gf-wrap .gform_wrapper select:focus {
	border-color: var(--wp--preset--color--custom-negro) !important;
	outline: none !important;
	box-shadow: none !important;
}

.hco-gf-wrap .gform_wrapper select:focus-visible {
	border-color: var(--wp--preset--color--custom-negro) !important;
	outline: none !important;
	box-shadow: none !important;
}

.hco-gf-wrap .gform_wrapper .gform_footer {
	display: flex !important;
	justify-content: flex-end !important;
	padding: 0 !important;
	margin: 7px 0 0 !important;
}

.hco-gf-wrap .gform_wrapper .gform_footer input[type="submit"],
.hco-gf-wrap .gform_wrapper .gform_page_footer input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 16px 23px !important;
	background-color: var(--wp--preset--color--custom-rojo-principal) !important;
	color: var(--wp--preset--color--custom-blanco) !important;
	border: none !important;
	border-radius: 2px !important;
	font-family: var(--wp--preset--font-family--jetbrains-mono) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: -0.12px !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease !important;
	width: auto !important;
}

.hco-gf-wrap .gform_wrapper .gform_footer input[type="submit"]:hover,
.hco-gf-wrap .gform_wrapper .gform_page_footer input[type="submit"]:hover {
	background-color: var(--wp--preset--color--custom-negro) !important;
}

.hco-bloque .block-editor-rich-text__editable {
	min-width: 1px;
	outline-offset: 2px;
}

.hco-volanta.block-editor-rich-text__editable,
.hco-form-label .block-editor-rich-text__editable,
.hco-oficina__pais.block-editor-rich-text__editable {
	display: inline;
}

.hco-titulo.block-editor-rich-text__editable,
.hco-bajada.block-editor-rich-text__editable,
.hco-oficina__tipo.block-editor-rich-text__editable,
.hco-oficina__dir.block-editor-rich-text__editable {
	display: block;
}

.hco-gf-fallback--editor {
	margin: 0;
}

/* ---- Editor preview ---- */
.hco-preview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	padding: 24px;
}

.hco-preview__left,
.hco-preview__right {
	display: flex;
	flex-direction: column;
}

.hco-preview__right {
	border: 1px dashed #ccc;
	padding: 20px;
}

.hco-oficinas-preview {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

.hco-oficina-preview {
	display: flex;
	flex-direction: column;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.hco-form-label-preview {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #999;
	border: 1px solid #ddd;
	padding: 4px 10px;
	margin-bottom: 16px;
	width: fit-content;
}

/* =============================
   Responsive ≤ 1023px
   ============================= */
@media (max-width: 1023px) {
	.hco-bloque {
		padding: 40px 0;
	}

	.hco-bloque--page-contacto {
		padding-top: calc(var(--hco-header-offset, 0px) + 56px);
	}

	.hco-inner {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.hco-titulo {
		font-size: 28px;
	}

	.hco-bajada {
		font-size: 16px;
		margin-bottom: 30px;
	}

	.hco-oficina {
		padding: 24px 20px;
	}

	.hco-form-body {
		padding: 24px;
	}

	.hco-gf-wrap .gform_wrapper .gform_footer,
	.hco-gf-wrap .gform_wrapper .gform_page_footer {
		width: 100% !important;
	}

	.hco-gf-wrap .gform_wrapper .gform_footer {
		justify-content: flex-start !important;
	}

	.hco-gf-wrap .gform_wrapper .gform_footer input[type="submit"],
	.hco-gf-wrap .gform_wrapper .gform_page_footer input[type="submit"] {
		width: 100% !important;
	}

	.hco-gf-wrap .gform_wrapper input[type="text"],
	.hco-gf-wrap .gform_wrapper input[type="email"],
	.hco-gf-wrap .gform_wrapper input[type="tel"],
	.hco-gf-wrap .gform_wrapper select {
		height: 48px !important;
	}

	.hco-preview {
		grid-template-columns: 1fr;
	}
}
