/*
 * Neo Sens — custom styles
 * Loaded after style.css via neo_sens_enqueue_custom_styles() in functions.php.
 * Global colors/fonts/font-sizes live in theme.json; use this file for anything
 * theme.json can't express (custom properties, one-off overrides, layout tweaks).
 */

:root {
	--neo-sens-radius: 0.25rem;
	--neo-sens-shadow-sm: 0 1px 2px color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent);
	--neo-sens-shadow-md: 0 4px 16px color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	--neo-sens-transition: 200ms ease;
}

/* Header: stick to the top with a subtle divider once content scrolls under it. */
.neo-sens-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

/*
 * WordPress only centers/caps "wide" blocks when their direct parent has the
 * "is-layout-constrained" class. Our page-no-title template renders
 * post-content as "is-layout-flow" instead, so any top-level align:wide
 * block (not nested inside its own constrained group) gets no max-width at
 * all and stretches edge-to-edge. Mirror the core .is-layout-constrained
 * rule for the flow case so every page behaves consistently.
 */
.entry-content.is-layout-flow>.alignwide:not(.has-global-padding) {
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
}

/* Contact Form 7: match the brand's understated, uppercase, letterform-driven inputs. */
.ns-quote-form .wpcf7-form {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.ns-quote-form .ns-form-row {
	display: flex;
	flex-direction: column;
}

.ns-quote-form .wpcf7-form-control {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	background: transparent;
	padding: 0.85em 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
	transition: border-color var(--neo-sens-transition);
}

.ns-quote-form .wpcf7-form-control:focus {
	outline: none;
	border-bottom-color: var(--wp--preset--color--accent-1);
}

.ns-quote-form textarea.wpcf7-form-control {
	min-height: 7rem;
	resize: vertical;
}

.ns-quote-form .wpcf7-select {
	appearance: none;
	background-image: none;
}

.ns-quote-form input[type="submit"] {
	justify-self: start;
	margin-top: var(--wp--preset--spacing--20);
	border: none;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: var(--wp--preset--font-size--small);
	padding: 1rem 2.25rem;
	cursor: pointer;
	transition: background var(--neo-sens-transition);
}

.ns-quote-form input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-1);
}

.ns-quote-form .wpcf7-not-valid-tip {
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.35em;
}

.ns-quote-form .wpcf7-response-output {
	margin-top: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--accent-6);
	padding: 1em 1.25em;
	font-size: var(--wp--preset--font-size--small);
}

.lista-categorias {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
}

.lista-categorias li {
	padding-left: 0;
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding-block: 0.5rem;
}

.ns-form-row label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 0.5rem;
}

.ns-form-row textarea {
	height: 100px;
}

.ns-form-row p {
	margin: 0;
}

.categoria-catalogo {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
}

.categoria-catalogo a {
	text-decoration: none;
	pointer-events: none;
	cursor: default;

}

/* Contenedor principal */
.inifito-home {
	display: flex !important;
	align-items: center;
	gap: 0 !important;
	width: 100%;
	max-width: none !important;
	margin-top: 20px;
	overflow: hidden;

	-webkit-mask-image: linear-gradient(to right,
			transparent 0%,
			#000 15%,
			#000 85%,
			transparent 100%);

	mask-image: linear-gradient(to right,
			transparent 0%,
			#000 15%,
			#000 85%,
			transparent 100%);
}

/* Los dos grupos duplicados */
.inifito-home>.wp-block-group {
	display: flex !important;
	align-items: center;
	flex-shrink: 0;
	gap: 80px !important;

	width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 80px 0 0 !important;

	animation: infinito-home 50s linear infinite;
}

/* Textos */
.inifito-home>.wp-block-group>p {
	flex-shrink: 0;
	margin: 0 !important;
	white-space: nowrap;
}

/* Iconos */
.inifito-home .wp-block-outermost-icon-block {
	flex-shrink: 0;
	margin: 0 !important;
}

@keyframes infinito-home {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-100%);
	}
}

.lista-catalogos {
	padding: 0;
	gap: 10px;
	list-style: none;
	margin: 0;
	display: flex;
	flex-flow: wrap;
}

.lista-catalogos li {
	margin: 0;
	padding: 0;
}

.lista-catalogos li a {
	padding: 10px 20px;
	border: 1px solid var(--wp--preset--color--accent-6);
	display: block;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: all 0.3s ease;
}

.lista-catalogos li a:hover {
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--accent-1);

}

.grid-logos img {
	filter: grayscale(100%);
	transition: all 0.3s ease;
	opacity: 0.7;
	scale: 0.7;
}

.grid-logos img:hover {
	filter: grayscale(0%);
	opacity: 1;
}