/*
Theme Name: Grúas Huaraz — Barbachan
Theme URI: https://gruashuaraz.com/
Description: Tema hijo de Twenty Twenty-Four para Grúas Barbachan. Incluye identidad visual, portada comercial y patrones editables para servicios de grúa y taller multimarca.
Author: Grúas Barbachan
Author URI: https://gruashuaraz.com/
Template: twentytwentyfour
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gruashuaraz
*/

:root {
	--gh-blue: #24479a;
	--gh-blue-dark: #112a64;
	--gh-blue-soft: #eaf0ff;
	--gh-gold: #fbb900;
	--gh-gold-dark: #c98900;
	--gh-ink: #13213f;
	--gh-muted: #5c667a;
	--gh-surface: #ffffff;
	--gh-surface-alt: #f5f7fb;
	--gh-radius-sm: 0.55rem;
	--gh-radius-md: 1rem;
	--gh-radius-lg: 1.5rem;
	--gh-shadow: 0 16px 45px rgba(17, 42, 100, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

a,
button,
input,
textarea,
select {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--gh-gold);
	outline-offset: 3px;
}

.gh-brand-stripe {
	background: linear-gradient(90deg, var(--gh-blue) 0 68%, var(--gh-gold) 68% 100%);
	min-height: 7px;
}

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.gh-site-header {
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(36, 71, 154, 0.1);
	box-shadow: 0 7px 24px rgba(17, 42, 100, 0.07);
	position: relative;
	backdrop-filter: blur(12px);
	transition: background-color 220ms ease, box-shadow 220ms ease;
}

.admin-bar header.wp-block-template-part {
	top: 32px;
}

.gh-header__inner {
	min-height: 84px;
	transition: min-height 220ms ease;
}

.gh-logo {
	margin: 0;
	max-width: min(440px, 46vw);
	transition: max-width 220ms ease, transform 220ms ease;
}

.gh-logo img {
	display: block;
	height: auto;
	width: 100%;
}

.gh-site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.985);
	box-shadow: 0 12px 34px rgba(17, 42, 100, 0.16);
}

.gh-site-header.is-scrolled .gh-header__inner {
	min-height: 68px;
}

.gh-site-header.is-scrolled .gh-logo {
	max-width: min(350px, 42vw);
}

.gh-primary-nav a {
	font-size: 0.88rem;
	font-weight: 750;
	letter-spacing: 0.015em;
	text-decoration: none;
}

.gh-primary-nav a:hover,
.gh-primary-nav .current-menu-item > a {
	color: var(--gh-blue);
}

.gh-primary-nav .current-menu-item > a::after,
.gh-primary-nav a:hover::after {
	transform: scaleX(1);
}

.gh-primary-nav a {
	position: relative;
}

.gh-primary-nav a::after {
	background: var(--gh-gold);
	bottom: -0.45rem;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
	width: 100%;
}

.wp-block-button__link {
	box-shadow: 0 8px 18px rgba(17, 42, 100, 0.12);
	font-weight: 800;
	letter-spacing: 0.01em;
}

.wp-block-button__link:hover {
	box-shadow: 0 12px 26px rgba(17, 42, 100, 0.18);
	transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--gh-blue);
	border-color: var(--gh-blue);
	color: #fff;
}

.gh-hero {
	background: var(--gh-blue-dark);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.gh-hero > .wp-block-columns {
	position: relative;
	z-index: 3;
}

.gh-hero__media {
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	overflow: hidden;
	position: absolute;
	z-index: 0;
}

.gh-hero__media::after {
	background: linear-gradient(105deg, rgba(7, 24, 65, 0.97) 0%, rgba(17, 42, 100, 0.91) 46%, rgba(36, 71, 154, 0.76) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.gh-hero__media img {
	animation: gh-hero-photo 18s ease-in-out infinite alternate;
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
	will-change: transform;
}

.gh-hero::before,
.gh-hero::after {
	content: "";
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.gh-hero::before {
	background: var(--gh-gold);
	height: 160%;
	op: -30%;
	right: 7%;
	transform: rotate(22deg);
	width: 10px;
	box-shadow: 38px 0 0 rgba(251, 185, 0, 0.2), 76px 0 0 rgba(255, 255, 255, 0.08);
}

.gh-hero::after {
	background: radial-gradient(circle, rgba(251, 185, 0, 0.18) 0 2px, transparent 3px);
	background-size: 28px 28px;
	height: 260px;
	right: -35px;
	top: 32px;
	width: 340px;
}

.gh-eyebrow {
	align-items: center;
	display: flex;
	font-size: 0.78rem;
	font-weight: 850;
	gap: 0.65rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.gh-eyebrow::before {
	background: var(--gh-gold);
	content: "";
	height: 4px;
	width: 2.5rem;
}

.gh-hero h1 {
	max-width: 830px;
	text-wrap: balance;
}

.gh-hero__lead {
	max-width: 680px;
}

.gh-assistance-card {
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--gh-radius-lg);
	box-shadow: 0 26px 70px rgba(4, 17, 49, 0.3);
	position: relative;
}

.gh-assistance-card::before {
	background: linear-gradient(90deg, var(--gh-gold), #ffd75b);
	border-radius: var(--gh-radius-lg) var(--gh-radius-lg) 0 0;
	content: "";
	height: 7px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.gh-assistance-phone {
	color: var(--gh-blue-dark);
	display: inline-block;
	font-family: var(--wp--preset--font-family--barbachan-display);
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.gh-assistance-phone:hover {
	color: var(--gh-blue);
}

.gh-check-list {
	list-style: none;
	padding-left: 0;
}

.gh-check-list li {
	align-items: flex-start;
	display: flex;
	gap: 0.7rem;
	margin-bottom: 0.7rem;
}

.gh-check-list li::before {
	background: var(--gh-gold);
	border-radius: 50%;
	color: var(--gh-blue-dark);
	content: "✓";
	display: inline-grid;
	font-size: 0.72rem;
	font-weight: 900;
	height: 1.35rem;
	place-items: center;
	width: 1.35rem;
	flex: 0 0 auto;
}

.gh-section-intro {
	max-width: 780px;
}

.gh-section-intro h2 {
	text-wrap: balance;
}

.gh-service-grid {
	align-items: stretch !important;
}

.gh-service-grid > .wp-block-column {
	display: flex;
}

.gh-service-card {
	background: var(--gh-surface);
	border: 1px solid rgba(36, 71, 154, 0.12);
	border-radius: var(--gh-radius-md);
	box-shadow: 0 10px 30px rgba(17, 42, 100, 0.07);
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.gh-service-card:hover {
	border-color: rgba(36, 71, 154, 0.35);
	box-shadow: var(--gh-shadow);
	transform: translateY(-5px);
}

.gh-service-number {
	align-items: center;
	background: var(--gh-blue-soft);
	border: 1px solid rgba(36, 71, 154, 0.12);
	border-radius: 999px;
	color: var(--gh-blue) !important;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 900;
	height: 2.8rem;
	justify-content: center;
	letter-spacing: 0.08em;
	width: 2.8rem;
	margin: 0;
}

.gh-service-card h3 {
	margin-top: 1.35rem;
}

.gh-service-card p {
	color: var(--gh-muted);
}

.gh-service-meta {
	color: var(--gh-blue) !important;
	font-size: 0.77rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin-top: auto;
	padding-top: 1rem;
	text-transform: uppercase;
}

.gh-stats-band {
	background: var(--gh-blue-dark);
	overflow: hidden;
	position: relative;
}

.gh-stats-band::before {
	animation: gh-shimmer 9s linear infinite;
	background: linear-gradient(90deg, transparent, rgba(251, 185, 0, 0.12), transparent);
	content: "";
	height: 100%;
	left: -50%;
	position: absolute;
	top: 0;
	width: 45%;
}

.gh-stat {
	position: relative;
	text-align: center;
}

.gh-stat + .gh-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.gh-stat__value {
	color: var(--gh-gold);
	font-family: var(--wp--preset--font-family--barbachan-display);
	font-size: clamp(2rem, 4vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0;
}

.gh-stat__label {
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	margin-top: 0.55rem;
	text-transform: uppercase;
	margin-bottom: 0;
}

.gh-feature-band {
	background: var(--gh-surface-alt);
	border-bottom: 1px solid rgba(36, 71, 154, 0.08);
	border-top: 1px solid rgba(36, 71, 154, 0.08);
}

.gh-feature {
	border-left: 4px solid var(--gh-gold);
	padding-left: 1.2rem;
}

.gh-feature p {
	color: var(--gh-muted);
}

.gh-area-panel {
	background: var(--gh-blue-dark);
	border-radius: var(--gh-radius-lg);
	box-shadow: var(--gh-shadow);
	overflow: hidden;
	position: relative;
}

.gh-area-panel::after {
	background: var(--gh-gold);
	content: "";
	height: 180%;
	position: absolute;
	right: 7%;
	top: -40%;
	transform: rotate(18deg);
	width: 6px;
}

.gh-area-badge {
	background: rgba(251, 185, 0, 0.14);
	border: 1px solid rgba(251, 185, 0, 0.4);
	border-radius: 999px;
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	padding: 0.55rem 0.85rem;
	text-transform: uppercase;
}

.gh-cta {
	background: linear-gradient(120deg, #fbb900, #ffd45a);
	border-radius: var(--gh-radius-lg);
	box-shadow: 0 20px 45px rgba(201, 137, 0, 0.22);
	position: relative;
}

.gh-cta::before {
	background: var(--gh-blue);
	border-radius: var(--gh-radius-lg) 0 0 var(--gh-radius-lg);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 8px;
}

.gh-contact-grid {
	align-items: stretch !important;
}

.gh-contact-grid > .wp-block-column {
	display: flex;
}

.gh-contact-card {
	background: var(--gh-surface);
	border: 1px solid rgba(36, 71, 154, 0.12);
	border-radius: var(--gh-radius-md);
	box-shadow: 0 12px 34px rgba(17, 42, 100, 0.08);
	display: flex;
	flex: 1;
	flex-direction: column;
	position: relative;
}

.gh-contact-card::before {
	background: var(--gh-gold);
	border-radius: var(--gh-radius-md) var(--gh-radius-md) 0 0;
	content: "";
	height: 5px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.gh-contact-card:hover {
	box-shadow: var(--gh-shadow);
	transform: translateY(-5px);
}

.gh-contact-icon {
	align-items: center;
	background: var(--gh-blue-soft);
	border-radius: 0.8rem;
	color: var(--gh-blue);
	display: inline-flex;
	font-size: 1.4rem;
	height: 3.15rem;
	justify-content: center;
	width: 3.15rem;
}

.gh-contact-card a {
	overflow-wrap: anywhere;
}

.gh-branch-grid {
	align-items: stretch !important;
}

.gh-branch-grid > .wp-block-column {
	display: flex;
}

.gh-branch-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: var(--gh-radius-md);
	display: flex;
	flex: 1;
	flex-direction: column;
}

.gh-branch-card h3 {
	color: var(--gh-gold);
}

.gh-branch-card p {
	color: rgba(255, 255, 255, 0.84);
}

.gh-floating-call {
	align-items: center;
	background: var(--gh-gold);
	border: 2px solid #fff;
	border-radius: 999px;
	bottom: 1.25rem;
	box-shadow: 0 14px 36px rgba(17, 42, 100, 0.3);
	color: var(--gh-blue-dark);
	display: flex;
	font-size: 0.84rem;
	font-weight: 900;
	gap: 0.55rem;
	padding: 0.72rem 1rem;
	position: fixed;
	right: 1.25rem;
	text-decoration: none;
	z-index: 80;
}

.gh-floating-call svg {
	height: 1.2rem;
	width: 1.2rem;
}

.gh-floating-call:hover {
	background: #ffd45a;
	color: var(--gh-blue-dark);
	transform: translateY(-3px) scale(1.02);
}

.gh-js .gh-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-js .gh-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gh-hero .gh-eyebrow {
	animation: gh-hero-in 650ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-hero h1 {
	animation: gh-hero-in 750ms 160ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-hero__lead,
.gh-hero .wp-block-buttons {
	animation: gh-hero-in 750ms 250ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-hero .gh-assistance-card {
	animation: gh-card-in 850ms 250ms both cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gh-hero-in {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes gh-card-in {
	from {
		opacity: 0;
		transform: translateX(28px) rotate(1deg);
	}
	to {
		opacity: 1;
		transform: translateX(0) rotate(0);
	}
}

@keyframes gh-hero-photo {
	from {
		transform: scale(1.035) translate3d(-0.6%, 0, 0);
	}
	to {
		transform: scale(1.12) translate3d(0.8%, -0.7%, 0);
	}
}

@keyframes gh-shimmer {
	to {
		left: 110%;
	}
}

.gh-page-hero {
	background: linear-gradient(112deg, var(--gh-blue-dark), var(--gh-blue));
	position: relative;
}

.gh-page-hero::after {
	background: var(--gh-gold);
	bottom: 0;
	content: "";
	height: 6px;
	left: 0;
	position: absolute;
	width: min(360px, 42vw);
}

.gh-entry-content > :where(h2, h3) {
	margin-top: 1.8em;
}

.gh-entry-content :where(img, .wp-block-cover, .wp-block-media-text) {
	border-radius: var(--gh-radius-md);
}

.gh-post-card {
	border: 1px solid rgba(36, 71, 154, 0.12);
	border-radius: var(--gh-radius-md);
	overflow: hidden;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.gh-site-footer {
	background: var(--gh-blue-dark);
	position: relative;
}

.gh-site-footer::before {
	background: linear-gradient(90deg, var(--gh-gold) 0 32%, var(--gh-blue) 32% 100%);
	content: "";
	height: 7px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.gh-footer-logo {
	margin: 0;
	max-width: 440px;
}

.gh-footer-logo img {
	height: auto;
	width: 100%;
}

.gh-site-footer a {
	color: #fff;
}

.gh-site-footer a:hover {
	color: var(--gh-gold);
}

.gh-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-site-footer li + li {
	margin-top: 0.55rem;
}

.gh-footer-rule {
	border-color: rgba(255, 255, 255, 0.17) !important;
}

@media (max-width: 900px) {
	.gh-header-cta {
		display: none;
	}

	.gh-logo {
		max-width: min(390px, 65vw);
	}

	.gh-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.gh-primary-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.gh-hero::before {
		right: 2%;
	}
}

@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}

	.gh-header__inner {
		min-height: 72px;
	}

	.gh-service-grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.gh-stat + .gh-stat {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		padding-top: 1.5rem;
	}

	.gh-area-panel::after {
		display: none;
	}

	.gh-hero__media::after {
		background: linear-gradient(105deg, rgba(7, 24, 65, 0.98) 0%, rgba(17, 42, 100, 0.94) 62%, rgba(36, 71, 154, 0.84) 100%);
	}
}

@media (max-width: 600px) {
	.gh-logo {
		max-width: 70vw;
	}

	.gh-hero .wp-block-buttons .wp-block-button,
	.gh-hero .wp-block-buttons .wp-block-button__link,
	.gh-cta .wp-block-buttons .wp-block-button,
	.gh-cta .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}

	.gh-hero .wp-block-buttons .wp-block-button__link,
	.gh-cta .wp-block-buttons .wp-block-button__link {
		text-align: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 1.5rem;
	}

	.gh-floating-call {
		border-radius: 50%;
		bottom: 0.9rem;
		height: 3.35rem;
		justify-content: center;
		padding: 0;
		right: 0.9rem;
		width: 3.35rem;
	}

	.gh-floating-call span {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.gh-js .gh-reveal {
		opacity: 1;
		transform: none;
	}
}
