/* Cotizar proyecto — propuesta A ("franja + acordeón"), sin líneas arriba/abajo.
   El formulario es de Contact Form 7 (plantilla en CF7-COTIZAR-PROYECTO.md);
   cotizar-proyecto.js lo reparte en 3 pasos. Los radios de CF7 se muestran como
   chips. Selectores con .omega-hw-cot .wpcf7-form para ganarle al tema Martfury. */
.omega-hw-cot {
	--omega-hw-cot-rojo: #C3002F;
	--omega-hw-cot-rojo-hover: #A10027;
	--omega-hw-cot-navy: #0A2A57;
	--omega-hw-cot-azul: #0369A1;
	--omega-hw-cot-tinta: #0B1B33;
	--omega-hw-cot-gris: #51627A;
	--omega-hw-cot-linea: #D5DEE9;
	--omega-hw-cot-suave: #F4F5F5;
	--omega-hw-cot-error: #B3122E;
	--omega-hw-cot-wa: #1FA855;
	--omega-hw-cot-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--omega-hw-cot-ease-io: cubic-bezier(0.77, 0, 0.175, 1);
	color: var(--omega-hw-cot-tinta);
}

/* ── Franja (siempre visible) ── */
.omega-hw-cot-cabecera {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
	padding: 22px 4px;
}
.omega-hw-cot-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--omega-hw-cot-azul); }
.omega-hw-cot-titulo { margin: 6px 0 4px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.08; text-transform: uppercase; color: var(--omega-hw-cot-tinta); }
.omega-hw-cot-texto { margin: 0; font-size: 14px; line-height: 1.6; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-acciones { display: flex; align-items: center; gap: 16px; }
.omega-hw-cot-llamar { font-size: 13px; font-weight: 600; color: var(--omega-hw-cot-gris); text-decoration: none; white-space: nowrap; }
.omega-hw-cot-llamar strong { color: var(--omega-hw-cot-tinta); }

/* ── Botones (el propio y el de enviar de CF7) ── */
.omega-hw-cot-boton,
.omega-hw-cot .wpcf7-form input.wpcf7-submit,
.omega-hw-cot .omega-hw-cot-nav button {
	height: 50px; margin: 0; padding: 0 24px;
	border: 0; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	/* GothamBook (la de los chips y textos del widget; mismo nombre que usa el
	   botón Ofertas) y 600: el tema les pone "Gotham" 700 a los botones y se
	   veían muy pesados frente a la maqueta. "inherit" no alcanza: el contenedor
	   hereda "Gotham" (confirmado en vivo). */
	font-family: GothamBook, Gotham, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	white-space: nowrap; text-decoration: none; cursor: pointer;
	transition: background-color 160ms ease, transform 160ms var(--omega-hw-cot-ease), opacity 160ms ease;
}
.omega-hw-cot-boton:active,
.omega-hw-cot .wpcf7-form input.wpcf7-submit:active,
.omega-hw-cot .omega-hw-cot-nav button:active { transform: scale(0.97); }
.omega-hw-cot-boton:focus-visible,
.omega-hw-cot .wpcf7-form input.wpcf7-submit:focus-visible,
.omega-hw-cot .omega-hw-cot-nav button:focus-visible { outline: 3px solid #0EA5E9; outline-offset: 2px; }
.omega-hw-cot-toggle,
.omega-hw-cot .wpcf7-form input.wpcf7-submit { background: var(--omega-hw-cot-rojo); color: #fff; }
.omega-hw-cot-boton svg { width: 18px; height: 18px; flex: none; }
.omega-hw-cot-chev { transition: transform 350ms var(--omega-hw-cot-ease); }
.omega-hw-cot-toggle[aria-expanded="true"] .omega-hw-cot-chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
	.omega-hw-cot-toggle:hover,
	.omega-hw-cot .wpcf7-form input.wpcf7-submit:hover { background: var(--omega-hw-cot-rojo-hover); }
}

/* border-box propio: no depender de que el tema lo defina (sin esto, alto mínimo
   + padding + borde sumaban 67px en vez de 44 en los chips). */
.omega-hw-cot, .omega-hw-cot *, .omega-hw-cot *::before, .omega-hw-cot *::after { box-sizing: border-box; }

/* [hidden] tiene que ganarle al display de los botones (Siguiente / Enviar por paso). */
.omega-hw-cot [hidden] { display: none !important; }

/* ── Acordeón: grid-template-rows 0fr → 1fr anima el alto real sin medirlo.
   Solo se pliega con JS (.is-js): sin JS el formulario queda visible. ── */
.omega-hw-cot.is-js .omega-hw-cot-panel {
	display: grid; grid-template-rows: 0fr;
	transition: grid-template-rows 450ms var(--omega-hw-cot-ease-io);
}
.omega-hw-cot.is-js .omega-hw-cot-panel-interior { overflow: hidden; min-height: 0; }
.omega-hw-cot.is-js.is-abierto .omega-hw-cot-panel { grid-template-rows: 1fr; }
.omega-hw-cot-contenido {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px;
	/* 8px a los lados: el panel recorta (overflow hidden) y el anillo de foco mide 3px + 2px de separación. */
	padding: 8px 8px 32px;
}
.omega-hw-cot.is-js .omega-hw-cot-contenido { opacity: 0; transform: translateY(-8px); transition: opacity 250ms ease, transform 400ms var(--omega-hw-cot-ease); }
.omega-hw-cot.is-js.is-abierto .omega-hw-cot-contenido { opacity: 1; transform: none; transition-delay: 120ms; }
/* Fondo blanco propio: sobre una sección gris, sin fondo, las pastillas del resumen no se veían. */
.omega-hw-cot-form { padding: 24px; background: #fff; border: 1px solid var(--omega-hw-cot-linea); border-radius: 14px; }

/* ── CF7: limpieza de lo que agrega el tema y CF7 (confirmado en vivo) ── */
/* El tema pone el formulario de CF7 en display:flex en fila: progreso, pasos y
   botones quedaban uno al lado del otro. */
.omega-hw-cot .wpcf7-form { display: block; }
.omega-hw-cot .wpcf7-form p { margin: 0; }
/* autop envuelve los 5 campos en un solo <p>: para la grilla de 2 columnas eran un
   único elemento y todo caía en una columna. */
.omega-hw-cot .omega-hw-cot-campos > p { display: contents; }
.omega-hw-cot .wpcf7-form br { display: none; }
.omega-hw-cot .wpcf7-form-control-wrap { display: block; position: relative; margin: 0; }
.omega-hw-cot .wpcf7-spinner { display: none; }
.omega-hw-cot .wpcf7-form.submitting input.wpcf7-submit { opacity: 0.7; pointer-events: none; cursor: progress; }

/* ── Pasos ── */
.omega-hw-cot-progreso { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.omega-hw-cot-progreso-txt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-barra { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.omega-hw-cot-barra span { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--omega-hw-cot-linea); overflow: hidden; }
.omega-hw-cot-barra span::after {
	content: ''; position: absolute; inset: 0; background: var(--omega-hw-cot-rojo);
	transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--omega-hw-cot-ease);
}
.omega-hw-cot-barra span.is-hecho::after { transform: scaleX(1); }

/* Con .wpcf7-form en el selector: la limpieza ".wpcf7-form p { margin: 0 }" les
   ganaba y la pregunta quedaba pegada a las opciones (confirmado en vivo). */
.omega-hw-cot .wpcf7-form .omega-hw-cot-pregunta { margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--omega-hw-cot-tinta); }
.omega-hw-cot .wpcf7-form .omega-hw-cot-subpregunta { margin: 24px 0 14px; font-size: 14px; font-weight: 700; color: var(--omega-hw-cot-tinta); }
.omega-hw-cot.is-pasos .omega-hw-cot-paso { display: none; }
.omega-hw-cot.is-pasos .omega-hw-cot-paso.is-activo { display: block; animation: omega-hw-cot-entra 320ms var(--omega-hw-cot-ease); }
.omega-hw-cot.is-pasos.is-atras .omega-hw-cot-paso.is-activo { animation-name: omega-hw-cot-entra-atras; }
@keyframes omega-hw-cot-entra { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes omega-hw-cot-entra-atras { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
/* Sin JS los pasos se ven todos, separados. */
.omega-hw-cot:not(.is-pasos) .omega-hw-cot-paso + .omega-hw-cot-paso { margin-top: 22px; }

/* Radios de CF7 → chips (el input queda accesible por teclado, oculto a la vista). */
.omega-hw-cot .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px 10px; }
/* flex: none + nowrap: sin esto el chip se achicaba y partía el texto en 3 líneas
   (confirmado con el HTML real de CF7). */
.omega-hw-cot .wpcf7-radio .wpcf7-list-item { margin: 0; flex: none; max-width: 100%; }
.omega-hw-cot .wpcf7-radio label { position: relative; display: block; margin: 0; cursor: pointer; }
.omega-hw-cot .wpcf7-radio input[type="radio"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.omega-hw-cot .wpcf7-radio .wpcf7-list-item-label {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
	border: 1.5px solid var(--omega-hw-cot-linea); border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--omega-hw-cot-tinta);
	white-space: nowrap;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--omega-hw-cot-ease);
}
@media (hover: hover) and (pointer: fine) {
	.omega-hw-cot .wpcf7-radio label:hover .wpcf7-list-item-label { border-color: var(--omega-hw-cot-azul); }
}
.omega-hw-cot .wpcf7-radio label:active .wpcf7-list-item-label { transform: scale(0.97); }
.omega-hw-cot .wpcf7-radio input:checked + .wpcf7-list-item-label { background: var(--omega-hw-cot-navy); border-color: var(--omega-hw-cot-navy); color: #fff; }
.omega-hw-cot .wpcf7-radio input:focus-visible + .wpcf7-list-item-label { outline: 3px solid #0EA5E9; outline-offset: 2px; }

/* Paso 3: campos */
.omega-hw-cot .omega-hw-cot-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* display block (no flex en columna): en flex, "(opcional)" quedaba como elemento
   aparte y bajaba a otra línea. */
.omega-hw-cot .omega-hw-cot-campo { display: block; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--omega-hw-cot-tinta); }
.omega-hw-cot .omega-hw-cot-campo .wpcf7-form-control-wrap { margin-top: 6px; }
.omega-hw-cot .omega-hw-cot-campo small { font-weight: 500; color: var(--omega-hw-cot-gris); }
.omega-hw-cot .omega-hw-cot-ancho { grid-column: 1 / -1; }
.omega-hw-cot .wpcf7-form input.wpcf7-text,
.omega-hw-cot .wpcf7-form input.wpcf7-tel,
.omega-hw-cot .wpcf7-form input.wpcf7-email,
.omega-hw-cot .wpcf7-form select.wpcf7-select,
.omega-hw-cot .wpcf7-form textarea.wpcf7-textarea {
	width: 100%; height: 48px; margin: 0; padding: 0 14px;
	font-size: 15px; font-weight: 500; color: var(--omega-hw-cot-tinta);
	background: #fff; border: 1.5px solid var(--omega-hw-cot-linea); border-radius: 8px;
	box-shadow: none; outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.omega-hw-cot .wpcf7-form textarea.wpcf7-textarea { height: 76px; padding: 12px 14px; resize: vertical; }
.omega-hw-cot .wpcf7-form input.wpcf7-text:focus,
.omega-hw-cot .wpcf7-form input.wpcf7-tel:focus,
.omega-hw-cot .wpcf7-form input.wpcf7-email:focus,
.omega-hw-cot .wpcf7-form select.wpcf7-select:focus,
.omega-hw-cot .wpcf7-form textarea.wpcf7-textarea:focus { border-color: var(--omega-hw-cot-azul); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15); }
.omega-hw-cot .wpcf7-form .wpcf7-not-valid { border-color: var(--omega-hw-cot-error); box-shadow: 0 0 0 3px rgba(179, 18, 46, 0.12); }
.omega-hw-cot .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--omega-hw-cot-error); }
.omega-hw-cot .omega-hw-cot-privacidad { margin: 12px 0 0; font-size: 12px; font-weight: 500; color: var(--omega-hw-cot-gris); }
.omega-hw-cot .omega-hw-cot-privacidad a { color: var(--omega-hw-cot-azul); font-weight: 600; }

.omega-hw-cot-resumen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.omega-hw-cot-resumen span { padding: 4px 10px; border-radius: 999px; background: var(--omega-hw-cot-suave); font-size: 12.5px; font-weight: 600; color: var(--omega-hw-cot-gris); }

/* Navegación Atrás / Siguiente (la arma el JS; el botón de enviar de CF7 se muda acá) */
.omega-hw-cot-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 28px; }
.omega-hw-cot .omega-hw-cot-nav .omega-hw-cot-atras { height: auto; padding: 10px 4px; background: none; color: var(--omega-hw-cot-gris); font-weight: 300; letter-spacing: 0; text-transform: none; }
.omega-hw-cot .omega-hw-cot-nav .omega-hw-cot-atras.is-oculto { visibility: hidden; }
.omega-hw-cot .omega-hw-cot-nav .omega-hw-cot-siguiente { background: var(--omega-hw-cot-azul); color: #fff; }
.omega-hw-cot .omega-hw-cot-nav .omega-hw-cot-siguiente:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
	.omega-hw-cot .omega-hw-cot-nav .omega-hw-cot-siguiente:not(:disabled):hover { background: #0C3D7D; }
}
.omega-hw-cot-nav svg { width: 16px; height: 16px; }

/* Aviso general de CF7: solo para fallos de envío (los errores de campo ya se ven en cada campo). */
.omega-hw-cot .wpcf7-form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--omega-hw-cot-error); border-radius: 8px; font-size: 13px; color: var(--omega-hw-cot-error); }
.omega-hw-cot .wpcf7-form.init .wpcf7-response-output,
.omega-hw-cot .wpcf7-form.sent .wpcf7-response-output,
.omega-hw-cot .wpcf7-form.invalid .wpcf7-response-output,
.omega-hw-cot .wpcf7-form .wpcf7-response-output:empty { display: none; }

/* Éxito */
.omega-hw-cot-exito { display: none; }
.omega-hw-cot.is-enviado .wpcf7 { display: none; }
.omega-hw-cot.is-enviado .omega-hw-cot-exito { display: block; animation: omega-hw-cot-entra 400ms var(--omega-hw-cot-ease); }
.omega-hw-cot-exito-icono { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: rgba(30, 123, 79, 0.1); color: #1E7B4F; display: grid; place-items: center; }
.omega-hw-cot-exito-icono svg { width: 26px; height: 26px; }
.omega-hw-cot-exito h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--omega-hw-cot-tinta); }
.omega-hw-cot-exito p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-exito a { color: var(--omega-hw-cot-tinta); font-weight: 700; }
.omega-hw-cot-anuncio { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Contacto y sucursales ── */
.omega-hw-cot .omega-hw-cot-h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--omega-hw-cot-azul); }
.omega-hw-cot-central {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	border: 1.5px solid var(--omega-hw-cot-linea); border-radius: 12px;
	color: var(--omega-hw-cot-tinta); text-decoration: none; transition: border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .omega-hw-cot-central:hover { border-color: var(--omega-hw-cot-azul); } }
.omega-hw-cot-central-icono { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--omega-hw-cot-navy); color: #fff; display: grid; place-items: center; }
.omega-hw-cot-central-icono svg { width: 20px; height: 20px; }
.omega-hw-cot-central small { display: block; font-size: 12px; font-weight: 600; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-central strong { font-size: 22px; font-weight: 900; letter-spacing: 0.01em; }
.omega-hw-cot-wa { width: 100%; margin-top: 10px; background: var(--omega-hw-cot-wa); color: #fff; }
@media (hover: hover) and (pointer: fine) { .omega-hw-cot-wa:hover { background: #178F47; color: #fff; } }

.omega-hw-cot-suc-titulo { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.omega-hw-cot-suc-titulo .omega-hw-cot-h3 { margin: 0; }
.omega-hw-cot-suc-titulo span { font-size: 12px; font-weight: 600; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-suc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.omega-hw-cot-chip {
	min-height: 36px; padding: 6px 12px;
	border: 1.5px solid var(--omega-hw-cot-linea); border-radius: 999px; background: #fff;
	font-size: 12.5px; font-weight: 100; color: var(--omega-hw-cot-tinta); cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--omega-hw-cot-ease);
}
@media (hover: hover) and (pointer: fine) { .omega-hw-cot-chip:hover { border-color: var(--omega-hw-cot-azul); } }
.omega-hw-cot-chip:active { transform: scale(0.97); }
.omega-hw-cot-chip:focus-visible { outline: 3px solid #0EA5E9; outline-offset: 2px; }
.omega-hw-cot-chip[aria-pressed="true"] { background: var(--omega-hw-cot-navy); border-color: var(--omega-hw-cot-navy); color: #fff; }

.omega-hw-cot-sede {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
	margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--omega-hw-cot-suave);
}
.omega-hw-cot-sede[hidden] { display: none; }
.omega-hw-cot-sede.is-cambia { animation: omega-hw-cot-fundido 260ms ease; }
@keyframes omega-hw-cot-fundido { from { opacity: 0.2; } to { opacity: 1; } }
.omega-hw-cot-sede-nombre { grid-column: 1 / -1; font-size: 15px; font-weight: 300; }
.omega-hw-cot-sede-linea { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--omega-hw-cot-gris); }
.omega-hw-cot-sede-linea svg { width: 15px; height: 15px; flex: none; color: var(--omega-hw-cot-azul); }
.omega-hw-cot-sede-linea a { font-size: 15px; font-weight: 800; color: var(--omega-hw-cot-tinta); text-decoration: none; }
.omega-hw-cot-llegar {
	grid-column: 2; grid-row: 2 / span 2; align-self: center;
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
	border: 1.5px solid var(--omega-hw-cot-linea); border-radius: 999px; background: #fff;
	font-size: 12.5px; font-weight: 700; color: var(--omega-hw-cot-azul); text-decoration: none;
}
.omega-hw-cot-llegar svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
	.omega-hw-cot-cabecera { grid-template-columns: minmax(0, 1fr); }
	.omega-hw-cot-acciones { flex-wrap: wrap; }
	.omega-hw-cot-contenido { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
	.omega-hw-cot .omega-hw-cot-campos { grid-template-columns: 1fr; }
	.omega-hw-cot-form { padding: 18px; }
	.omega-hw-cot-toggle { width: 100%; }
	.omega-hw-cot-llamar { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.omega-hw-cot *, .omega-hw-cot *::before, .omega-hw-cot *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
