/**
 * Responsive · header drawer + hero móvil.
 */

@media (max-width: 1024px) {
	.hec-header__inner {
		min-height: 72px;
		justify-content: space-between;
	}

	.hec-header__brand {
		padding: 0.85rem 1rem;
	}

	/* Ocultar CTA en el bloque naranja (solo search + hamburger) */
	.hec-header__actions .hec-btn--header {
		display: none !important;
	}

	.hec-header__actions {
		min-width: 0;
		width: auto;
	}

	.hec-header__search {
		width: 52px;
	}

	.hec-header__toggle {
		display: inline-flex;
	}

	/* Drawer blanco desde la derecha (imagen 5) */
	.hec-header__nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 120;
		display: block;
		width: min(78vw, 360px);
		max-width: 100%;
		padding: 0;
		background: #fff;
		color: #111;
		transform: translateX(105%);
		transition: transform 0.35s ease;
		overflow-y: auto;
		box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
		flex: none;
	}

	.hec-header__nav.is-open {
		transform: translateX(0);
	}

	.hec-header__close {
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
		width: 100%;
		min-height: 0;
		margin: 0 !important;
		padding: 1rem 1.15rem !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		background-color: transparent !important;
		background-image: none !important;
		box-shadow: none !important;
		outline: none !important;
		appearance: none !important;
		-webkit-appearance: none !important;
		color: #111 !important;
		font-size: 2rem !important;
		font-weight: 400 !important;
		line-height: 1 !important;
		text-shadow: none !important;
		text-transform: none !important;
		letter-spacing: normal !important;
		cursor: pointer;
	}

	.hec-header__close:hover,
	.hec-header__close:focus,
	.hec-header__close:active,
	.hec-header__close:focus-visible {
		background: transparent !important;
		background-color: transparent !important;
		background-image: none !important;
		box-shadow: none !important;
		color: #111 !important;
		outline: none !important;
	}

	.hec-menu {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 0 0 2rem;
	}

	.hec-menu > li {
		border-bottom: 1px solid #e8e8e8;
		width: 100%;
		padding-bottom: 0;
		margin-bottom: 0;
	}

	.hec-menu > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 1rem 1.25rem;
		color: #222;
		font-size: 1rem;
		font-weight: 500;
		opacity: 1;
	}

	.hec-menu > li > a:hover,
	.hec-menu > li > a:focus,
	.hec-menu .current-menu-item > a,
	.hec-menu .current_page_item > a {
		color: var(--hec-accent, #e07a2f);
	}

	.hec-menu .menu-item-has-children > a {
		display: flex;
	}

	.hec-menu .menu-item-has-children > a::after {
		content: '';
		width: 8px;
		height: 8px;
		border-right: 1.5px solid #555;
		border-bottom: 1.5px solid #555;
		transform: rotate(-45deg);
		margin-left: auto;
		flex-shrink: 0;
		opacity: 1;
		transition: transform 0.25s ease;
	}

	.hec-menu .menu-item-has-children.is-submenu-open > a::after,
	.hec-menu > li.menu-item-has-children:hover > a::after,
	.hec-menu > li.menu-item-has-children:focus-within > a::after {
		transform: rotate(45deg);
	}

	.hec-menu .sub-menu {
		display: none;
		position: static;
		left: auto;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.35rem;
		background: #f7f7f7;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition: none;
	}

	.hec-menu .sub-menu::before,
	.hec-menu .sub-menu::after {
		display: none;
	}

	.hec-menu .menu-item-has-children.is-submenu-open > .sub-menu {
		display: block;
	}

	.hec-menu .sub-menu a {
		padding: 0.7rem 1.25rem 0.7rem 1.75rem;
		border-radius: 0;
		color: #444;
		white-space: normal;
		background: transparent;
	}

	.hec-menu .sub-menu a:hover,
	.hec-menu .sub-menu a:focus,
	.hec-menu .sub-menu .current-menu-item > a,
	.hec-menu .sub-menu .current_page_item > a {
		background: transparent;
		color: var(--hec-accent, #e07a2f);
	}

	.hec-header__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(0, 0, 0, 0.55);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.hec-header__backdrop.is-visible {
		opacity: 1;
		visibility: visible;
	}

	/* Hero móvil: redes + scroll a la izquierda (imagen 4) */
	.hec-hero__social {
		display: flex;
		left: 0.85rem;
		top: auto;
		bottom: 0.5rem;
		transform: none;
		gap: 0.75rem;
	}

	.hec-hero__social-list a {
		width: 32px;
		height: 32px;
		border-color: var(--hec-accent, #e07a2f);
	}

	.hec-hero__scroll {
		display: none;
	}

	.hec-hero__content {
		width: min(860px, calc(100% - 4.5rem));
		padding-top: 5.5rem;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 640px) {
	.hec-header__brand {
		padding: 0.75rem 0.85rem;
	}

	.hec-header__logo {
		max-height: 34px;
	}

	.hec-header__actions {
		align-self: stretch;
	}

	.hec-header__search,
	.hec-header__toggle {
		width: 50px;
	}

	.hec-hero__title {
		font-size: clamp(1.85rem, 8.5vw, 2.45rem);
	}

	.hec-hero__desc {
		font-size: 0.95rem;
	}

	.hec-hero__dots {
		bottom: 1.35rem;
	}

	.hec-hero__content {
		width: calc(100% - 4rem);
		padding-left: 0.25rem;
	}
}
