/* ==========================================================
   WEBART FRAMEWORK
   Proyecto : Electric Vial SpA
   Archivo  : services-single.css
   Autor    : WebArt SpA
========================================================== */

/* ==========================================================
   SERVICIO INDIVIDUAL
========================================================== */

.wa-service-single {
	width: 100%;
	background: var(--wa-color-white);
}

.wa-service-single__article {
	margin: 0;
}

/* ==========================================================
   HERO COMPACTO
========================================================== */

.wa-service-hero {
	width: 100%;
	padding: 58px 0 54px;
	background: #f6f6f3;
	border-bottom: 1px solid rgba(5, 5, 5, 0.06);
}

.wa-service-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	width: min(
		calc(100% - (var(--wa-space-3) * 2)),
		var(--wa-container)
	);
	max-width: var(--wa-container);
	margin-inline: auto;
}

.wa-service-hero__eyebrow {
	margin: 0 0 10px;
	color: var(--wa-color-primary);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wa-service-hero__title {
	max-width: 920px;
	margin: 0;

	color: var(--wa-color-black-soft);
	font-size: clamp(2.8rem, 4.5vw, 4.6rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.045em;
}

/* ==========================================================
   INFORMACIÓN PRINCIPAL
========================================================== */

.wa-service-main {
	width: 100%;
	padding: 80px 0 88px;
	background: var(--wa-color-white);
}

.wa-service-main__inner {
	display: flex;
	flex-direction: column;

	width: min(
		calc(100% - (var(--wa-space-3) * 2)),
		var(--wa-container)
	);
	max-width: var(--wa-container);
	margin-inline: auto;
	gap: 56px;
}

.wa-service-main__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 64px;
}

.wa-service-main__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
}

.wa-service-main__media {
	position: relative;
	min-width: 0;
	overflow: hidden;

	border-radius: var(--wa-radius-lg);
	background: #ececea;
	aspect-ratio: 4 / 3;
}

.wa-service-main__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wa-service-main__placeholder {
	width: 100%;
	height: 100%;
	min-height: 460px;
	background:
		linear-gradient(
			135deg,
			#ececea 0%,
			#ddddda 100%
		);
}

.wa-service-main__lead {
	max-width: 620px;
	margin: 0 0 24px;

	color: var(--wa-color-black-soft);
	font-size: clamp(1.3rem, 2vw, 1.8rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.wa-service-main__description {
	width: 100%;
	max-width: none;
}

/* ==========================================================
   CONTENIDO NATIVO DE WORDPRESS — ESPACIADO
========================================================== */

.wa-service-main__description > *:first-child {
	margin-top: 0 !important;
}

.wa-service-main__description > *:last-child {
	margin-bottom: 0 !important;
}

/* Párrafos */
.wa-service-main__description p {
	margin: 0 0 22px !important;
}

/* ==========================================================
   CONTENIDO NATIVO DE WORDPRESS — INTERLINEADO Y ESPACIADO
========================================================== */

.wa-service-main__description h2 {
	margin: 42px 0 16px !important;
	line-height: 1.1 !important;
}

.wa-service-main__description h3 {
	margin: 32px 0 12px !important;
	line-height: 1.15 !important;
}

.wa-service-main__description h4 {
	margin: 26px 0 10px !important;
	line-height: 1.2 !important;
}

.wa-service-main__description > h2:first-child,
.wa-service-main__description > h3:first-child,
.wa-service-main__description > h4:first-child {
	margin-top: 0 !important;
}

.wa-service-main__description p {
	margin: 0 0 22px !important;
}

.wa-service-main__description ul,
.wa-service-main__description ol {
	margin: 10px 0 28px !important;
	padding-left: 28px !important;
}

.wa-service-main__description li {
	margin-bottom: 7px !important;
}

/* Primer título del contenido */
.wa-service-main__description > h2:first-child,
.wa-service-main__description > h3:first-child,
.wa-service-main__description > h4:first-child {
	margin-top: 0 !important;
}

/* Listas */
.wa-service-main__description ul,
.wa-service-main__description ol {
	margin: 10px 0 28px !important;
	padding-left: 28px !important;
}

.wa-service-main__description li {
	margin: 0 0 7px !important;
}

.wa-service-main__description li:last-child {
	margin-bottom: 0 !important;
}

/* Más aire cuando un título viene después de una lista */
.wa-service-main__description ul + h2,
.wa-service-main__description ul + h3,
.wa-service-main__description ol + h2,
.wa-service-main__description ol + h3 {
	margin-top: 38px !important;
}

/* ==========================================================
   GALERÍA
========================================================== */

.wa-service-gallery {
	width: 100%;
	padding: 0 0 88px;
	background: var(--wa-color-white);
}

.wa-service-gallery__inner {
	width: min(
		calc(100% - (var(--wa-space-3) * 2)),
		var(--wa-container)
	);
	max-width: var(--wa-container);
	margin-inline: auto;
}

.wa-service-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.wa-service-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;

	border-radius: var(--wa-radius-md);
	background: #ececea;
	aspect-ratio: 4 / 3;
}

.wa-service-gallery__link {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.wa-service-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;

	transition:
		transform 0.45s ease,
		filter 0.45s ease;
}

.wa-service-gallery__item:hover .wa-service-gallery__image {
	transform: scale(1.035);
	filter: brightness(0.92);
}

/* ==========================================================
   GALERÍA NATIVA DE WORDPRESS — SERVICIOS
========================================================== */

.wa-service-main__description .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 18px !important;
	margin: 48px 0 0 !important;
}

.wa-service-main__description .wp-block-gallery figure,
.wa-service-main__description .wp-block-gallery .wp-block-image {
	position: relative;
	width: 100% !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--wa-radius-md);
	background: #ececea;
	aspect-ratio: 4 / 3;
}

.wa-service-main__description .wp-block-gallery img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	transition:
		transform 0.45s ease,
		filter 0.45s ease;
}

.wa-service-main__description .wp-block-gallery figure:hover img,
.wa-service-main__description .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.035);
	filter: brightness(0.92);
}

.wa-service-main__description .wp-block-gallery a,
.wa-service-main__description .wp-block-gallery button {
	cursor: zoom-in;
}

/* ==========================================================
   CTA DEL SERVICIO
========================================================== */

.wa-service-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	width: 100%;
	padding: 42px 0;

	background:
		linear-gradient(
			135deg,
			#ffd11a 0%,
			var(--wa-color-primary) 55%,
			#f2b900 100%
		);
}

.wa-service-cta::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;

	width: 30%;

	background:
		repeating-linear-gradient(
			135deg,
			rgba(5, 5, 5, 0.045) 0,
			rgba(5, 5, 5, 0.045) 2px,
			transparent 2px,
			transparent 12px
		);
}

.wa-service-cta__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;

	width: min(
		calc(100% - (var(--wa-space-3) * 2)),
		var(--wa-container)
	);
	max-width: var(--wa-container);
	margin-inline: auto;
	gap: 40px;
}

.wa-service-cta__content {
	flex: 1 1 auto;
	max-width: 760px;
}

.wa-service-cta__title {
	margin: 0 0 8px;

	color: var(--wa-color-black);
	font-size: clamp(1.8rem, 2.7vw, 2.8rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.wa-service-cta__text {
	margin: 0;

	color: rgba(5, 5, 5, 0.78);
	font-size: 1rem;
	line-height: 1.55;
}

.wa-service-cta__actions {
	flex: 0 0 auto;
}

.wa-service-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 210px;
	min-height: 52px;
	padding: 14px 26px;

	border: 2px solid var(--wa-color-black);
	border-radius: var(--wa-radius-sm);
	background: var(--wa-color-black);
	color: var(--wa-color-white) !important;

	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;

	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);

	transition:
		transform var(--wa-transition),
		background-color var(--wa-transition),
		border-color var(--wa-transition),
		box-shadow var(--wa-transition);
}

.wa-service-cta__button:hover,
.wa-service-cta__button:focus-visible {
	transform: translateY(-3px);

	border-color: var(--wa-color-black-soft);
	background: var(--wa-color-black-soft);
	color: var(--wa-color-white) !important;

	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width: 1024px) {

	.wa-service-hero {
		padding: 50px 0 46px;
	}

	.wa-service-main {
		padding: 64px 0 72px;
	}

    .wa-service-main__inner {
    	gap: 42px;
    }
    
    .wa-service-main__intro {
    	grid-template-columns: 1fr;
    	gap: 36px;
    }

	.wa-service-main__media {
		aspect-ratio: 16 / 9;
	}

	.wa-service-main__description,
	.wa-service-main__lead {
		max-width: 760px;
	}

	.wa-service-gallery {
		padding-bottom: 72px;
	}

	.wa-service-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.wa-service-cta__inner {
		gap: 28px;
	}

	.wa-service-main__description .wp-block-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

/* ==========================================================
   RESPONSIVE — MÓVIL
========================================================== */

@media (max-width: 767px) {

	.wa-service-hero {
		padding: 42px 0 38px;
	}

	.wa-service-hero__inner,
	.wa-service-main__inner,
	.wa-service-gallery__inner,
	.wa-service-cta__inner {
		width: calc(100% - 32px);
	}

	.wa-service-hero__title {
		font-size: clamp(2.4rem, 11vw, 3.3rem);
		line-height: 1.02;
	}
	
	.wa-service-main__intro {
	gap: 26px;
    }

	.wa-service-main {
		padding: 48px 0 56px;
	}

	.wa-service-main__inner {
		gap: 30px;
	}

	.wa-service-main__media {
		border-radius: var(--wa-radius-md);
		aspect-ratio: 4 / 3;
	}

	.wa-service-main__lead {
		margin-bottom: 20px;
		font-size: 1.25rem;
	}

	.wa-service-main__description p,
	.wa-service-main__description li {
		font-size: 0.98rem;
		line-height: 1.68;
	}

	.wa-service-gallery {
		padding-bottom: 56px;
	}

	.wa-service-gallery__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.wa-service-gallery__item {
		aspect-ratio: 4 / 3;
	}

	.wa-service-cta {
		padding: 42px 0;
	}

	.wa-service-cta::after {
		width: 55%;
	}

	.wa-service-cta__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.wa-service-cta__content {
		max-width: none;
	}

	.wa-service-cta__title {
		font-size: clamp(1.9rem, 8vw, 2.5rem);
	}

	.wa-service-cta__button {
		width: 100%;
		min-width: 0;
	}
	
	.wa-service-main__description .wp-block-gallery {
	grid-template-columns: 1fr !important;
	gap: 14px !important;
	margin-top: 36px !important;
	}
}