/* Webshero Header — front styles */

.wsh-header {
	--wsh-h: 96px;
	--wsh-current-text: var(--wsh-text, #1A1308);
	position: relative;
	width: 100%;
	background: var(--wsh-bg, #fff);
	color: var(--wsh-current-text);
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	z-index: 100;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wsh-header * { box-sizing: border-box; }

/* Transparent floating header over hero */
.wsh-header.is-transparent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
	--wsh-current-text: var(--wsh-transparent-text, #fff);
}

/* Fade-in for the transparent header right after the sticky unmounts,
 * so it doesn't snap into view when the user reaches the top. */
.wsh-header.is-transparent.is-entering {
	animation: wsh-fade-in .35s ease both;
}
@keyframes wsh-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Sticky red header, mounted but hidden above the viewport until revealed */
.wsh-header.is-transparent.is-scrolled {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #DE1C1D;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
	border-bottom: 0;
	--wsh-current-text: #ffffff;
	transform: translateY(-100%);
}

/* Transition only kicks in after the JS arms it (next frame after mount),
 * so the initial transform:-100% applies instantly with no flash. */
.wsh-header.is-transparent.is-scrolled.is-armed {
	transition: transform .35s cubic-bezier(.22,.61,.36,1);
}

.wsh-header.is-transparent.is-scrolled.is-revealed {
	transform: translateY(0);
}

/* Non-transparent sticky */
.wsh-header:not(.is-transparent).is-sticky {
	position: sticky;
	top: 0;
}

@keyframes wsh-slide-down {
	from { transform: translateY(-100%); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.wsh-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 40px;
	min-height: var(--wsh-h);
}

/* Logo */
.wsh-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.wsh-logo a { display: inline-flex; align-items: center; line-height: 0; }
.wsh-logo img { display: block; }
.wsh-logo-text {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--wsh-current-text);
	text-decoration: none;
}

/* Logo always on left; flex distribution handles spacing */

/* Nav */
.wsh-nav--desktop {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}

.wsh-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wsh-menu__item { position: relative; }

/* Items that show a full-width mega menu anchor it to the bar (centered on page) instead of the item itself */
.wsh-menu__item.wsh-type-mega-cards,
.wsh-menu__item.wsh-type-mega-contact {
	position: static;
}

/* Hover bridge: invisible area below the link to cover the vertical gap between the link and the bar-anchored mega, so :hover doesn't drop when the cursor crosses it */
.wsh-menu__item.wsh-type-mega-cards > .wsh-menu__link,
.wsh-menu__item.wsh-type-mega-contact > .wsh-menu__link {
	position: relative;
}
.wsh-menu__item.wsh-type-mega-cards > .wsh-menu__link::after,
.wsh-menu__item.wsh-type-mega-contact > .wsh-menu__link::after {
	content: '';
	position: absolute;
	top: 100%;
	left: -16px;
	right: -16px;
	height: 40px;
	background: transparent;
}

.wsh-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	color: var(--wsh-current-text);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}

.wsh-menu__link:hover,
.wsh-menu__item:hover > .wsh-menu__link,
.wsh-menu__item:focus-within > .wsh-menu__link {
	color: var(--wsh-accent, #FFBC58);
}

.wsh-menu__arrow {
	flex: 0 0 auto;
	transition: transform .25s ease;
}

.wsh-menu__item:hover > .wsh-menu__link .wsh-menu__arrow,
.wsh-menu__item:focus-within > .wsh-menu__link .wsh-menu__arrow {
	transform: translateX(3px);
}

/* Burger — asymmetric designer hamburger */
.wsh-burger {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: none; /* shown on mobile breakpoint */
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0 6px;
	color: var(--wsh-current-text);
	margin-left: 0;
	order: 99;
	position: relative;
	transition: color .25s ease;
}
.wsh-burger::before {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .3s ease, transform .35s cubic-bezier(.22,.61,.36,1);
	pointer-events: none;
}
.wsh-burger:hover::before { opacity: .06; transform: scale(1); }
.wsh-burger span {
	display: block;
	height: 2px;
	border-radius: 3px;
	background: currentColor;
	transform-origin: center right;
	transition: transform .4s cubic-bezier(.22,.61,.36,1), width .3s cubic-bezier(.22,.61,.36,1), opacity .25s ease, background-color .25s ease;
	position: relative;
	z-index: 1;
}
.wsh-burger span:nth-child(1) { width: 26px; }
.wsh-burger span:nth-child(2) { width: 16px; }
.wsh-burger span:nth-child(3) { width: 22px; }
.wsh-burger:hover span:nth-child(2) { width: 26px; }
.wsh-burger:hover span:nth-child(3) { width: 26px; }

.wsh-burger[aria-expanded="true"] {
	color: #DE1C1D;
}
.wsh-burger[aria-expanded="true"] span:nth-child(1) {
	width: 24px;
	transform: translate(0, 8px) rotate(-45deg);
}
.wsh-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	transform: translateX(20px);
}
.wsh-burger[aria-expanded="true"] span:nth-child(3) {
	width: 24px;
	transform: translate(0, -8px) rotate(45deg);
}

/* Mobile-only burger uses same base */
.wsh-burger--mobile-only { display: none; }

/* Submenu classic dropdown */
.wsh-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: var(--wsh-mega-bg, #fff);
	border-radius: 0;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	z-index: 50;
}

.wsh-menu__item:hover > .wsh-submenu,
.wsh-menu__item:focus-within > .wsh-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wsh-submenu li a {
	display: block;
	padding: 10px 22px;
	color: var(--wsh-text, #1A1308);
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .15s ease, padding .2s ease;
}
.wsh-submenu li a:hover { color: var(--wsh-accent, #FFBC58); padding-left: 28px; }

/* Mega menu base */
.wsh-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	width: min(1250px, calc(100vw - 64px));
	background: var(--wsh-mega-bg, #fff);
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
	z-index: 50;
}

/* Hover bridge on the mega side: a transparent strip extending upward into the bar so diagonal cursor movement keeps the hover alive across the full mega width */
.wsh-mega::before {
	content: '';
	position: absolute;
	top: -24px;
	left: 0;
	right: 0;
	height: 24px;
	background: transparent;
}

.wsh-menu__item:hover > .wsh-mega,
.wsh-menu__item:focus-within > .wsh-mega {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.wsh-mega__inner { padding: 40px; }

/* Hallmark · component: mega-menu (cards) · genre: editorial · theme: brand hispaflex (tinta + rojo)
 * pre-emit critique: P4 H5 E4 S5 R4 V4
 * states: closed · open · card hover · card focus-visible · card active · cta hover/focus/active · reduced-motion
 * Cajón de porfolio v0.7.0: panel tinta con filo rojo, rail editorial (cifras vivas) + 3 proyectos. */
.wsh-mega--cards {
	background: var(--wsh-text, #1A1308);
	border-top: 2px solid #DE1C1D;
}
.wsh-mega--cards .wsh-mega__inner {
	display: grid;
	grid-template-columns: minmax(230px, 290px) 1fr;
	gap: 48px;
	padding: 44px 48px;
}

/* Rail editorial */
.wsh-mega__rail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.wsh-mega__heading {
	margin: 0;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.wsh-mega__meta {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.85rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.wsh-mega__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-bottom: 6px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}
.wsh-mega__cta::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #DE1C1D;
	transform: scaleX(0.28);
	transform-origin: left;
	transition: transform .3s ease;
}
.wsh-mega__cta svg { transition: transform .25s ease; }
.wsh-mega__cta:hover::after,
.wsh-mega__cta:focus-visible::after { transform: scaleX(1); }
.wsh-mega__cta:hover svg { transform: translateX(4px); }
.wsh-mega__cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.wsh-mega__cta:active { transform: translateY(1px); }

/* Grid de proyectos (solo cards con imagen; el CTA vive en el rail) */
.wsh-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.wsh-card {
	position: relative;
	display: block;
	text-decoration: none;
	color: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, opacity .35s ease;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.wsh-card:hover,
.wsh-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}
.wsh-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wsh-card:active { transform: translateY(-2px); }

.wsh-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	background-color: #2a221c;
	background-size: cover;
	background-position: center;
	transition: transform .45s ease;
}
.wsh-card:hover .wsh-card__img,
.wsh-card:focus-visible .wsh-card__img { transform: scale(1.05); }
.wsh-card__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.wsh-card__label {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 12px;
	z-index: 1;
	text-align: left;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
}
/* Barrido rojo bajo el nombre al pasar */
.wsh-card__label::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	margin-top: 6px;
	background: #DE1C1D;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease .05s;
}
.wsh-card:hover .wsh-card__label::after,
.wsh-card:focus-visible .wsh-card__label::after { transform: scaleX(1); }

/* Entrada escalonada de las cards al abrir el panel */
.wsh-menu__item .wsh-mega--cards .wsh-card {
	opacity: 0;
	transform: translateY(10px);
}
.wsh-menu__item:hover > .wsh-mega--cards .wsh-card,
.wsh-menu__item:focus-within > .wsh-mega--cards .wsh-card {
	opacity: 1;
	transform: translateY(0);
}
.wsh-menu__item:hover > .wsh-mega--cards .wsh-card:nth-child(2),
.wsh-menu__item:focus-within > .wsh-mega--cards .wsh-card:nth-child(2) { transition-delay: .06s; }
.wsh-menu__item:hover > .wsh-mega--cards .wsh-card:nth-child(3),
.wsh-menu__item:focus-within > .wsh-mega--cards .wsh-card:nth-child(3) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
	.wsh-card,
	.wsh-card:hover,
	.wsh-card__img,
	.wsh-card__label::after,
	.wsh-mega__cta::after,
	.wsh-mega__cta svg,
	.wsh-menu__item .wsh-mega--cards .wsh-card { transition: none; transform: none; opacity: 1; }
}

/* Contact mega menu — clean professional layout */
.wsh-mega--contact .wsh-mega__inner {
	padding: 48px 56px;
}

.wsh-contact {
	display: grid;
	grid-template-columns: 0.85fr 1.1fr 1fr;
	gap: 56px;
	align-items: start;
}

.wsh-contact__col { min-width: 0; }

.wsh-contact__heading {
	margin: 0 0 28px;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--wsh-text, #1A1308);
	letter-spacing: -0.01em;
}

.wsh-contact__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 22px;
}
.wsh-contact__label {
	font-size: 0.7rem;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1.2;
}
.wsh-contact__value {
	color: var(--wsh-text, #1A1308);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.55;
	text-decoration: none;
}
a.wsh-contact__value:hover { color: var(--wsh-accent, #FFBC58); }

/* Social — flat icons, no circles */
.wsh-social {
	display: flex;
	gap: 22px;
	margin-top: 36px;
}
.wsh-social__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
	color: var(--wsh-text, #1A1308);
	text-decoration: none;
	transition: color .2s ease, transform .2s ease;
}
.wsh-social__icon:hover {
	background: transparent;
	color: var(--wsh-accent, #FFBC58);
	transform: translateY(-2px);
}

/* Col 2 — Get in Touch */
.wsh-contact__text {
	margin: -16px 0 24px;
	color: rgba(0, 0, 0, 0.55);
	font-size: 0.85rem;
	line-height: 1.5;
}

.wsh-contact__builtin {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.wsh-contact .wsh-contact__builtin input,
.wsh-contact .wsh-contact__builtin textarea {
	padding: 10px 0 !important;
	margin-bottom: 22px !important;
	font-family: "Manrope", system-ui, sans-serif !important;
	font-size: 0.95rem !important;
	color: var(--wsh-text, #1A1308) !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	transition: border-color .2s ease;
}
.wsh-contact__builtin input::placeholder,
.wsh-contact__builtin textarea::placeholder {
	color: rgba(0, 0, 0, 0.4);
	font-weight: 400;
}
.wsh-contact__builtin input:focus,
.wsh-contact__builtin textarea:focus {
	outline: none;
	border-bottom-color: var(--wsh-accent, #FFBC58);
}
.wsh-contact__builtin textarea { resize: vertical; min-height: 100px; }

.wsh-contact .wsh-contact__builtin button,
.wsh-contact .wsh-contact__builtin button[type="submit"],
.wsh-mega--contact .wsh-contact__builtin button {
	align-self: flex-start !important;
	margin-top: 16px !important;
	padding: 14px 32px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: var(--wsh-text, #1A1308) !important;
	border: 1px solid rgba(0, 0, 0, 0.25) !important;
	border-radius: 0 !important;
	font-family: "Manrope", system-ui, sans-serif !important;
	font-weight: 500 !important;
	font-size: 0.9rem !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
}
.wsh-contact .wsh-contact__builtin button:hover,
.wsh-contact .wsh-contact__builtin button:focus,
.wsh-mega--contact .wsh-contact__builtin button:hover,
.wsh-mega--contact .wsh-contact__builtin button:focus {
	background: var(--wsh-accent, #FFBC58) !important;
	background-color: var(--wsh-accent, #FFBC58) !important;
	border-color: var(--wsh-accent, #FFBC58) !important;
	color: #1A1308 !important;
}

/* Style CF7 forms similarly when used */
.wsh-contact__form input[type="text"],
.wsh-contact__form input[type="email"],
.wsh-contact__form input[type="tel"],
.wsh-contact__form input[type="url"],
.wsh-contact__form textarea {
	width: 100%;
	padding: 10px 0;
	margin-bottom: 22px;
	font-family: inherit;
	font-size: 0.95rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0;
	color: var(--wsh-text, #1A1308);
}
.wsh-contact__form input:focus,
.wsh-contact__form textarea:focus {
	outline: none;
	border-bottom-color: var(--wsh-accent, #FFBC58);
}
.wsh-contact__form button[type="submit"],
.wsh-contact__form input[type="submit"],
.wsh-contact__form .wpcf7-submit {
	padding: 13px 30px;
	background: transparent;
	color: var(--wsh-text, #1A1308);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	font-family: inherit;
	font-weight: 500;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.wsh-contact__form button[type="submit"]:hover,
.wsh-contact__form input[type="submit"]:hover,
.wsh-contact__form .wpcf7-submit:hover {
	background: var(--wsh-accent, #FFBC58);
	border-color: var(--wsh-accent, #FFBC58);
	color: #1A1308;
}

/* Map column */
.wsh-contact__col--map { min-width: 0; }
.wsh-contact__map {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 0;
	overflow: hidden;
	background: #f3f3f3;
}
.wsh-contact__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(1) contrast(0.95);
}

/* Contact mega — variante TINTA (mismo lenguaje que el cajón de Proyectos, v0.7.1).
 * Overrides scoped a .wsh-mega--contact; el layout de 3 columnas no cambia. */
.wsh-mega--contact {
	background: var(--wsh-text, #1A1308);
	border-top: 2px solid #DE1C1D;
}
.wsh-mega--contact .wsh-contact__heading { color: #fff; }
.wsh-mega--contact .wsh-contact__label { color: rgba(255, 255, 255, 0.45); }
.wsh-mega--contact .wsh-contact__value { color: #fff; }
.wsh-mega--contact a.wsh-contact__value {
	position: relative;
	width: fit-content;
	text-decoration: none;
	transition: color .2s ease;
}
.wsh-mega--contact a.wsh-contact__value::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: #DE1C1D;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.wsh-mega--contact a.wsh-contact__value:hover { color: #fff; }
.wsh-mega--contact a.wsh-contact__value:hover::after,
.wsh-mega--contact a.wsh-contact__value:focus-visible::after { transform: scaleX(1); }
.wsh-mega--contact a.wsh-contact__value:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wsh-mega--contact .wsh-social__icon { color: #fff; }
.wsh-mega--contact .wsh-social__icon:hover { color: #DE1C1D; }
.wsh-mega--contact .wsh-contact__text { color: rgba(255, 255, 255, 0.55); }

/* Formulario sobre tinta */
.wsh-mega--contact .wsh-contact .wsh-contact__builtin input,
.wsh-mega--contact .wsh-contact .wsh-contact__builtin textarea {
	color: #fff !important;
	border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}
.wsh-mega--contact .wsh-contact__builtin input::placeholder,
.wsh-mega--contact .wsh-contact__builtin textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.wsh-mega--contact .wsh-contact__builtin input:focus,
.wsh-mega--contact .wsh-contact__builtin textarea:focus { border-bottom-color: #DE1C1D !important; }
.wsh-mega--contact .wsh-contact .wsh-contact__builtin button,
.wsh-mega--contact .wsh-contact__builtin button {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}
.wsh-mega--contact .wsh-contact .wsh-contact__builtin button:hover,
.wsh-mega--contact .wsh-contact .wsh-contact__builtin button:focus,
.wsh-mega--contact .wsh-contact__builtin button:hover,
.wsh-mega--contact .wsh-contact__builtin button:focus {
	background: #DE1C1D !important;
	background-color: #DE1C1D !important;
	border-color: #DE1C1D !important;
	color: #fff !important;
}
.wsh-mega--contact .wsh-contact__form input[type="text"],
.wsh-mega--contact .wsh-contact__form input[type="email"],
.wsh-mega--contact .wsh-contact__form input[type="tel"],
.wsh-mega--contact .wsh-contact__form input[type="url"],
.wsh-mega--contact .wsh-contact__form textarea {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 10px 0 !important;
	color: #fff !important;
}
.wsh-mega--contact .wsh-contact__form input::placeholder,
.wsh-mega--contact .wsh-contact__form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.wsh-mega--contact .wsh-contact__form input:focus,
.wsh-mega--contact .wsh-contact__form textarea:focus {
	outline: none;
	border-bottom-color: #DE1C1D !important;
}
/* Base blanca heredada para todo el panel (cazará cualquier texto suelto) */
.wsh-header .wsh-mega--contact .wsh-contact { color: #fff; }
.wsh-header .wsh-mega--contact .wsh-contact__text { color: rgba(255, 255, 255, 0.68); }
.wsh-header .wsh-mega--contact .wsh-contact__form,
.wsh-header .wsh-mega--contact .wsh-contact__form p,
.wsh-header .wsh-mega--contact .wsh-contact__form label,
.wsh-header .wsh-mega--contact .wsh-contact__form .wpcf7-list-item-label {
	color: rgba(255, 255, 255, 0.85) !important;
}
/* Hover del submit: el reposo ya es rojo → hover a rojo oscuro de marca (visible) */
.wsh-header .wsh-mega--contact .wsh-contact__form button[type="submit"]:hover,
.wsh-header .wsh-mega--contact .wsh-contact__form input[type="submit"]:hover,
.wsh-header .wsh-mega--contact .wsh-contact__form .wpcf7-submit:hover,
.wsh-header .wsh-mega--contact .wsh-contact__form .wpcf7-submit:focus-visible {
	background: #9A0E0F !important;
	background-color: #9A0E0F !important;
	border-color: #9A0E0F !important;
	color: #fff !important;
}
.wsh-mega--contact .wsh-contact__form button[type="submit"],
.wsh-mega--contact .wsh-contact__form input[type="submit"],
.wsh-mega--contact .wsh-contact__form .wpcf7-submit {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}
.wsh-mega--contact .wsh-contact__form button[type="submit"]:hover,
.wsh-mega--contact .wsh-contact__form input[type="submit"]:hover,
.wsh-mega--contact .wsh-contact__form .wpcf7-submit:hover {
	background: #DE1C1D;
	border-color: #DE1C1D;
	color: #fff;
}
/* El mapa gris pierde dureza sobre tinta */
.wsh-mega--contact .wsh-contact__map { background: #2a221c; }
.wsh-mega--contact .wsh-contact__map iframe { filter: grayscale(1) contrast(0.95) brightness(0.92); }

/* Mobile drawer — fullscreen modern reveal */
.wsh-drawer {
	--wsh-red: #DE1C1D;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--wsh-drawer-bg, #1A1308);
	color: var(--wsh-drawer-text, #fff);
	z-index: 99999;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
	clip-path: circle(0% at calc(100% - 46px) 36px);
	-webkit-clip-path: circle(0% at calc(100% - 46px) 36px);
	transition:
		clip-path .65s cubic-bezier(.77, 0, .175, 1),
		-webkit-clip-path .65s cubic-bezier(.77, 0, .175, 1),
		visibility 0s linear .65s;
	/* Pre-allocate the compositor layer so the first open doesn't lag while
	 * the GPU prepares clip-path rendering. */
	will-change: clip-path;
}
body.wsh-drawer-open .wsh-drawer {
	pointer-events: auto;
	visibility: visible;
	clip-path: circle(160% at calc(100% - 46px) 36px);
	-webkit-clip-path: circle(160% at calc(100% - 46px) 36px);
	transition:
		clip-path .65s cubic-bezier(.77, 0, .175, 1),
		-webkit-clip-path .65s cubic-bezier(.77, 0, .175, 1),
		visibility 0s linear 0s;
}
/* iOS Safari needs position:fixed on body to fully lock background scroll.
 * The JS captures scrollY and applies top:-scrollY inline to keep visual position. */
html.wsh-drawer-open,
body.wsh-drawer-open {
	overflow: hidden;
}
/* El position:fixed reflowea y repinta toda la página (salto visible si coincide
 * con el arranque del círculo). Va en una clase aparte que el JS añade cuando el
 * círculo ya cubre el viewport y retira antes de encogerlo: el salto queda
 * siempre tapado por el drawer opaco. */
body.wsh-drawer-lock {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	-webkit-overflow-scrolling: auto;
}

/* Lift the whole header stacking context above page content (Swiper slides, sticky CTAs, etc.) while the drawer is open */
body.wsh-drawer-open .wsh-header { z-index: 99999; }

.wsh-drawer__backdrop { display: none; }

/* Red vertical stripe + radial glows */
.wsh-drawer__accent {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--wsh-red);
	z-index: 2;
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .5s cubic-bezier(.22,.61,.36,1) .25s;
}
body.wsh-drawer-open .wsh-drawer__accent { transform: scaleY(1); }

.wsh-drawer__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0;
	transition: opacity .8s ease .15s;
	pointer-events: none;
	z-index: 1;
	will-change: opacity;
}
.wsh-drawer__glow--a {
	width: 360px;
	height: 360px;
	background: var(--wsh-red);
	bottom: -140px;
	right: -120px;
}
.wsh-drawer__glow--b {
	width: 240px;
	height: 240px;
	background: var(--wsh-red);
	bottom: -80px;
	left: -80px;
}
body.wsh-drawer-open .wsh-drawer__glow--a { opacity: .26; }
body.wsh-drawer-open .wsh-drawer__glow--b { opacity: .14; }

.wsh-drawer__inner {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 20px 28px 28px;
	overflow-y: hidden;
	overscroll-behavior: contain;
}
/* Only enable scroll inside the drawer while it's actually open. During the
 * close transition the inner used to capture the first touch (causing the
 * "necesito un clic antes de poder hacer scroll" issue). */
.wsh-drawer[aria-hidden="false"] .wsh-drawer__inner { overflow-y: auto; }

/* Top: logo + close */
.wsh-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	margin-bottom: 18px;
	flex-shrink: 0;
}
.wsh-drawer__logo { display: inline-flex; align-items: center; line-height: 0; }
.wsh-drawer__logo img { display: block; }
.wsh-drawer__brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

.wsh-drawer__close {
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: inherit;
	padding: 0;
	margin: 0;
	transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .25s ease, background .25s ease, color .25s ease;
}
.wsh-drawer__close:hover,
.wsh-drawer__close:focus-visible {
	transform: rotate(90deg);
	border-color: var(--wsh-red);
	background: var(--wsh-red);
	color: #fff;
	outline: none;
}
.wsh-drawer__close-x {
	position: relative;
	width: 14px;
	height: 14px;
	display: inline-block;
}
.wsh-drawer__close-x span {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}
.wsh-drawer__close-x span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.wsh-drawer__close-x span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }

/* Menu — level 0 big numbered items */
.wsh-drawer__nav { flex: 1 0 auto; padding-top: 8px; }
.wsh-drawer__menu, .wsh-drawer__sub { list-style: none; margin: 0; padding: 0; }

.wsh-drawer__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	opacity: 0;
	transform: translateY(24px);
}
body.wsh-drawer-open .wsh-drawer__item {
	animation: wsh-drawer-in .6s cubic-bezier(.22,.61,.36,1) both;
	animation-delay: calc(0.2s + var(--i, 0) * 0.07s);
}
@keyframes wsh-drawer-in {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wsh-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.wsh-drawer__link {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 0;
	color: inherit;
	text-decoration: none;
	font-family: "Manrope", system-ui, sans-serif;
	font-weight: 600;
	font-size: 1.3rem;
	letter-spacing: -0.015em;
	line-height: 1.15;
}
.wsh-drawer__num {
	color: var(--wsh-red);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	flex-shrink: 0;
	transform: translateY(-2px);
}
.wsh-drawer__label {
	display: inline-block;
	transition: transform .35s cubic-bezier(.22,.61,.36,1), color .25s ease;
	min-width: 0;
	flex: 1 1 auto;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Tighter rhythm + smaller everything on tiny phones */
@media (max-width: 380px) {
	.wsh-drawer__inner { padding: 16px 20px 24px; }
	.wsh-drawer__link { font-size: 1.15rem; padding: 12px 0; gap: 10px; }
	.wsh-drawer__num { font-size: 0.6rem; }
	.wsh-drawer__toggle { width: 32px; height: 32px; }
	.wsh-drawer__sub a { font-size: 0.92rem; padding: 9px 0; }
	.wsh-drawer__cta-icon { width: 36px; height: 36px; }
	.wsh-drawer__cta-value { font-size: 0.92rem; }
	.wsh-drawer__social-icon { width: 38px; height: 38px; }
}
.wsh-drawer__link:hover .wsh-drawer__label,
.wsh-drawer__link:focus-visible .wsh-drawer__label {
	transform: translateX(8px);
	color: var(--wsh-red);
}

.wsh-drawer__toggle {
	width: 36px;
	height: 36px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .4s cubic-bezier(.22,.61,.36,1), background .25s ease, border-color .25s ease, color .25s ease;
}
.wsh-drawer__toggle:hover {
	border-color: var(--wsh-red);
	color: var(--wsh-red);
}
.wsh-drawer__item.is-open > .wsh-drawer__row .wsh-drawer__toggle {
	transform: rotate(180deg);
	background: var(--wsh-red);
	border-color: var(--wsh-red);
	color: #fff;
}

/* Sub-items level 1 */
.wsh-drawer__sub {
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s cubic-bezier(.22,.61,.36,1);
	padding-left: 8px;
}
.wsh-drawer__item.is-open > .wsh-drawer__sub { max-height: 1500px; padding-bottom: 12px; }
.wsh-drawer__sub li {
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
	transition-delay: calc(var(--j, 0) * 0.05s);
}
.wsh-drawer__item.is-open > .wsh-drawer__sub li {
	opacity: 1;
	transform: translateX(0);
}
.wsh-drawer__sub a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.98rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s ease, gap .25s ease;
}
.wsh-drawer__sub a:hover {
	color: var(--wsh-red);
	gap: 18px;
}
.wsh-drawer__bullet {
	display: inline-block;
	width: 18px;
	height: 1px;
	background: rgba(255, 255, 255, 0.35);
	transition: width .3s cubic-bezier(.22,.61,.36,1), background-color .2s ease;
	flex-shrink: 0;
}
.wsh-drawer__sub a:hover .wsh-drawer__bullet {
	width: 32px;
	background: var(--wsh-red);
}

/* Footer: contact + social */
.wsh-drawer__footer {
	margin-top: 28px;
	padding-top: 26px;
	flex-shrink: 0;
	opacity: 0;
	transform: translateY(20px);
}
body.wsh-drawer-open .wsh-drawer__footer {
	animation: wsh-drawer-in .6s cubic-bezier(.22,.61,.36,1) both;
	animation-delay: calc(0.28s + var(--i, 0) * 0.07s);
}
.wsh-drawer__contact {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 22px;
}
.wsh-drawer__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.wsh-drawer__cta--static { cursor: default; }
.wsh-drawer__cta:not(.wsh-drawer__cta--static):hover { transform: translateX(4px); }
.wsh-drawer__cta:not(.wsh-drawer__cta--static):hover .wsh-drawer__cta-icon {
	background: var(--wsh-red);
	border-color: var(--wsh-red);
	color: #fff;
}
.wsh-drawer__cta-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: var(--wsh-red);
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.wsh-drawer__cta-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.wsh-drawer__cta-label {
	font-size: 0.62rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.wsh-drawer__cta-value {
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.3;
	color: inherit;
	word-break: break-word;
}

.wsh-drawer__social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.wsh-drawer__social-icon {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s cubic-bezier(.22,.61,.36,1);
}
.wsh-drawer__social-icon:hover {
	background: var(--wsh-red);
	border-color: var(--wsh-red);
	color: #fff;
	transform: translateY(-3px);
}
.wsh-drawer__social-icon svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 1024px) {
	.wsh-nav--desktop { display: none; }
	.wsh-burger,
	.wsh-burger--mobile-only { display: inline-flex; margin-left: auto; }
	.wsh-bar { padding: 0 24px; gap: 16px; min-height: 72px; }
	.wsh-header { --wsh-h: 72px; }
}

@media (max-width: 768px) {
	.wsh-contact {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.wsh-mega--contact .wsh-mega__inner { padding: 32px 24px; }
}

@media (max-width: 600px) {
	.wsh-bar { padding: 0 16px; }
}

/* Sticky red header — hover on nav links is bold white (red on red is invisible) */
.wsh-header.is-transparent.is-scrolled .wsh-menu__link:hover,
.wsh-header.is-transparent.is-scrolled .wsh-menu__item:hover > .wsh-menu__link,
.wsh-header.is-transparent.is-scrolled .wsh-menu__item:focus-within > .wsh-menu__link {
	color: #ffffff;
	font-weight: 700;
}

/* Mega contacto — formulario rápido compacto (CF7) */
.wsh-contact__form .ws-cf7-row { margin: 0 0 10px; }
.wsh-contact__form input[type="text"],
.wsh-contact__form input[type="email"],
.wsh-contact__form input[type="tel"] {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	color: #1A1308;
	border: 1px solid #E3E3E3;
	border-radius: 10px;
	background: #FFFFFF;
	outline: none;
	transition: border-color .2s;
}
.wsh-contact__form input:focus { border-color: #DE1C1D; }
.wsh-contact__form .wpcf7-acceptance { font-size: 13px; color: #6E7A84; }
.wsh-contact__form .wpcf7-acceptance a { color: #DE1C1D; text-decoration: underline; }
.wsh-contact__form .wpcf7-list-item { margin-left: 0; }
.wsh-mega .wsh-contact__form input[type="submit"],
.wsh-mega .wsh-contact__form .wpcf7-submit {
	display: inline-block;
	background: #DE1C1D;
	color: #FFFFFF;
	font-weight: 700;
	font-size: 14px;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	cursor: pointer;
	transition: background .25s ease;
}
.wsh-mega .wsh-contact__form input[type="submit"]:hover,
.wsh-mega .wsh-contact__form .wpcf7-submit:hover { background: #1A1308; color: #FFFFFF; }
.wsh-contact__form .wpcf7-response-output { font-size: 13px; margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; }
.wsh-contact__form .wpcf7-not-valid-tip { font-size: 12px; color: #FFD3D3; }
