/*
Theme Name: Dhomina Web & Analytics
Theme URI: https://dhominaweb.com/
Author: Dhomina Web & Analytics
Author URI: https://dhominaweb.com/
Description: Tema personalizado modular para Dhomina Web & Analytics.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dhomina-web-analytics
*/

@import url("./marca-dhomina.css");

:root {
	--dh-color-base-rgb: 242, 241, 240;
	--dh-color-dark-rgb: 14, 26, 89;
	--dh-color-surface: rgba(var(--dh-color-base-rgb), 0.08);
	--dh-color-border: rgba(var(--dh-color-base-rgb), 0.55);
	--dh-color-shadow: rgba(var(--dh-color-dark-rgb), 0.15);
	--dh-overlay-grid: rgba(255, 255, 255, 0.018);
	--dh-overlay-button-hover: rgba(var(--dh-color-base-rgb), 0.12);
	--dh-overlay-card: rgba(255, 255, 255, 0.025);
	--dh-overlay-project: rgba(255, 255, 255, 0.06);
	--dh-overlay-avatar-start: rgba(var(--dh-color-base-rgb), 0.45);
	--dh-overlay-avatar-end: rgba(255, 255, 255, 0.1);
	--dh-shadow-card: rgba(var(--dh-color-dark-rgb), 0.08);
	--dh-shadow-project: rgba(var(--dh-color-dark-rgb), 0.12);
	--dh-shell-width: 1280px;
	--dh-radius-sm: 5px;
	--dh-radius-md: 8px;
	--dh-logo-min-width: 57px;
	--dh-logo-ratio: 6;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--dh-color-primary);
}

body {
	margin: 0;
	color: var(--dh-color-base);
	font-family: var(--dh-font-body);
	background: linear-gradient(to right, var(--dh-color-primary) 0%, var(--dh-color-accent) 100%);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	min-height: 100vh;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

p,
span,
li {
	font-family: var(--dh-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--dh-font-heading);
	font-weight: 400;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dh-shell {
	width: min(calc(100% - 2rem), var(--dh-shell-width));
	margin: 0 auto;
}

.dh-home {
	position: relative;
	overflow: clip;
	padding-bottom: 2rem;
}

.dh-home__backdrop {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			90deg,
			var(--dh-overlay-grid) 0,
			var(--dh-overlay-grid) 28px,
			transparent 28px,
			transparent 110px
		),
		repeating-linear-gradient(
			0deg,
			var(--dh-overlay-grid) 0,
			var(--dh-overlay-grid) 28px,
			transparent 28px,
			transparent 110px
		);
	opacity: 0.18;
	pointer-events: none;
}

.dh-site-header,
.dh-hero,
.dh-intro,
.dh-services,
.dh-projects,
.dh-testimonial,
.dh-cta,
.dh-footer {
	position: relative;
	z-index: 1;
}

.dh-site-header {
	padding-top: 1.25rem;
}

.dh-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.25rem 0;
}

.dh-site-header__brand,
.dh-footer__brand {
	padding: 0.65rem;
}

.custom-logo-link,
.dh-logo {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	width: min(228px, 100%);
	min-width: var(--dh-logo-min-width);
	aspect-ratio: 18 / 3;
}

.custom-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dh-logo__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dh-logo--text {
	gap: 0;
}

.dh-site-nav {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
}

.dh-site-nav__link,
.dh-footer__link,
.dh-card__link {
	position: relative;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.dh-site-nav__link:hover,
.dh-footer__link:hover,
.dh-card__link:hover {
	opacity: 0.86;
	transform: translateY(-1px);
}

.dh-site-nav__menu .menu,
.dh-footer__menu .menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dh-footer__menu .menu {
	display: block;
}

.dh-footer__menu .menu-item {
	margin-bottom: 0.45rem;
}

.dh-footer__menu .menu-item a {
	display: block;
	font-size: 0.75rem;
	line-height: 1.5;
}

.dh-site-nav__menu .menu-item a,
.dh-footer__menu .menu-item a,
.dh-post-card__link,
.dh-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.dh-site-nav__menu .menu-item a,
.dh-footer__menu .menu-item a,
.dh-post-card__link {
	position: relative;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.dh-site-nav__menu .menu-item a:hover,
.dh-footer__menu .menu-item a:hover,
.dh-post-card__link:hover {
	opacity: 0.86;
	transform: translateY(-1px);
}

.dh-hero {
	padding-top: 3.25rem;
	padding-bottom: 4.5rem;
	text-align: center;
}

.dh-hero__content {
	max-width: 58rem;
	margin: 0 auto;
}

.dh-hero__title {
	font-size: clamp(2.8rem, 6vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.dh-hero__subtitle {
	margin: 1.5rem 0 2rem;
	font-size: clamp(1rem, 2vw, 1.5rem);
	line-height: 1.45;
}

.dh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	border-radius: var(--dh-radius-sm);
	font-size: 1rem;
	line-height: 1.45;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.dh-button:hover,
.dh-button:focus-visible {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 12px 24px rgba(var(--dh-color-dark-rgb), 0.18);
}

.dh-button--outline,
.dh-button--ghost {
	border: 2px solid var(--dh-color-base);
	background: transparent;
	color: var(--dh-color-base);
}

.dh-button--outline:hover,
.dh-button--ghost:hover {
	background: var(--dh-overlay-button-hover);
}

.dh-intro {
	padding: 1.5rem 0 3.25rem;
}

.dh-intro__copy {
	max-width: 65rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.dh-section-title {
	font-size: clamp(2rem, 4.4vw, 2.85rem);
	line-height: 1.18;
	letter-spacing: -0.03em;
}

.dh-section-title--left,
.dh-section-text--left {
	text-align: left;
}

.dh-section-text {
	max-width: 65rem;
	margin: 1.5rem auto 0;
	font-size: clamp(1rem, 1.7vw, 1.25rem);
	line-height: 1.5;
	text-align: center;
}

.dh-intro__visual {
	border-radius: var(--dh-radius-sm);
	overflow: hidden;
	box-shadow: 0 16px 40px var(--dh-color-shadow);
}

.dh-intro__visual img {
	width: 100%;
	aspect-ratio: 1152 / 648;
	object-fit: cover;
	mix-blend-mode: screen;
}

.dh-intro__visual--service {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(var(--dh-color-base-rgb), 0.03);
}

.dh-intro__visual--service img {
	aspect-ratio: auto;
	max-height: 24rem;
	object-fit: contain;
	mix-blend-mode: normal;
}

.dh-services {
	padding: 1rem 0 4rem;
}

.dh-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.dh-card {
	min-height: 14rem;
	padding: 1.5rem;
	border: 1px solid var(--dh-color-border);
	border-radius: var(--dh-radius-sm);
	background: var(--dh-overlay-card);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 24px var(--dh-shadow-card);
}

.dh-card__title {
	font-size: 1.35rem;
	line-height: 1.45;
}

.dh-card__text {
	margin: 0.45rem 0 1.75rem;
	font-size: 1rem;
	line-height: 1.45;
}

.dh-card__link {
	display: inline-block;
	font-size: 1rem;
}

.dh-projects {
	padding: 1rem 0 4rem;
}

.dh-projects__header {
	margin-bottom: 2.5rem;
}

.dh-projects__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.dh-project-card {
	margin: 0;
	border-radius: var(--dh-radius-sm);
	overflow: hidden;
	box-shadow: 0 18px 32px var(--dh-shadow-project);
	background: var(--dh-overlay-project);
	transform: translateY(0);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dh-project-card__link {
	position: relative;
	display: block;
	overflow: hidden;
}

.dh-project-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
	transform: translateX(-130%);
	transition: transform 0.55s ease;
}

.dh-project-card img {
	width: 100%;
	height: 100%;
	aspect-ratio: 560 / 315;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.35s ease, filter 0.35s ease;
}

.dh-project-card:hover,
.dh-project-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 24px 40px var(--dh-shadow-project);
}

.dh-project-card:hover .dh-project-card__link::after,
.dh-project-card:focus-within .dh-project-card__link::after {
	transform: translateX(130%);
}

.dh-project-card:hover img,
.dh-project-card:focus-within img {
	transform: scale(1.04);
	filter: saturate(1.05);
}

.dh-testimonial {
	padding: 2rem 0 5rem;
	text-align: center;
}

.dh-testimonial__quote {
	max-width: 72rem;
	margin: 0 auto 2rem;
	font-size: clamp(1.35rem, 2.8vw, 2.25rem);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.dh-testimonial__author {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
}

.dh-testimonial__avatar {
	display: inline-flex;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 50%;
	border: 1px solid var(--dh-color-border);
	background: linear-gradient(135deg, var(--dh-overlay-avatar-start), var(--dh-overlay-avatar-end));
	flex: 0 0 64px;
}

.dh-testimonial__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dh-cta {
	padding: 1rem 0 6rem;
	text-align: center;
}

.dh-cta__title {
	max-width: 72rem;
	margin: 0 auto 2rem;
	font-size: clamp(2rem, 4.8vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.dh-footer {
	padding: 0 0 1.5rem;
}

.dh-footer__inner {
	display: flex;
	gap: 4rem;
	justify-content: space-between;
	padding-top: 2.5rem;
	border-top: 1px solid var(--dh-color-border);
}

.dh-footer__brand {
	flex: 1 1 0;
}

.dh-footer__tagline {
	margin-top: 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.dh-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(130px, 1fr));
	gap: 2.5rem;
	width: min(100%, 600px);
}

.dh-footer__heading {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.dh-footer__link {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	line-height: 1.5;
}

.dh-footer__socials {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.4rem;
}

.dh-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 2.3rem;
	height: 2.3rem;
	padding: 0;
	border: 1px solid rgba(var(--dh-color-base-rgb), 0.22);
	border-radius: 999px;
	background: rgba(var(--dh-color-base-rgb), 0.04);
	backdrop-filter: blur(10px);
	color: var(--dh-color-base);
	font-size: 0;
	line-height: 1;
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.dh-footer__social-link:hover,
.dh-footer__social-link:focus-visible {
	transform: translateY(-2px);
	background: rgba(var(--dh-color-base-rgb), 0.14);
	box-shadow: 0 12px 24px rgba(var(--dh-color-dark-rgb), 0.16);
}

.dh-footer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: transparent;
}

.dh-footer__social-icon svg {
	display: block;
	width: 1.2rem !important;
	height: 1.2rem !important;
	flex: 0 0 1.2rem;
}

.dh-footer__legal {
	padding-top: 2rem;
	text-align: center;
	font-size: 0.75rem;
}

.dh-whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.5rem;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75rem 1rem 0.75rem 0.8rem;
	border: 1px solid rgba(var(--dh-color-base-rgb), 0.35);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(181, 101, 191, 0.96), rgba(14, 26, 89, 0.96));
	box-shadow: 0 18px 40px rgba(var(--dh-color-dark-rgb), 0.28);
	backdrop-filter: blur(16px);
	color: var(--dh-color-base);
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.dh-whatsapp-float:hover,
.dh-whatsapp-float:focus-visible {
	transform: translateY(-5px) scale(1.03);
	box-shadow: 0 24px 48px rgba(var(--dh-color-dark-rgb), 0.34);
	opacity: 1;
}

.dh-whatsapp-float__halo {
	position: absolute;
	inset: -6px;
	border-radius: inherit;
	border: 1px solid rgba(var(--dh-color-base-rgb), 0.22);
	opacity: 0.8;
	animation: dh-whatsapp-pulse 2.6s ease-out infinite;
}

.dh-whatsapp-float__icon,
.dh-whatsapp-float__label {
	position: relative;
	z-index: 1;
}

.dh-whatsapp-float__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.85rem;
	border-radius: 50%;
	background: rgba(var(--dh-color-base-rgb), 0.14);
	box-shadow: inset 0 0 0 1px rgba(var(--dh-color-base-rgb), 0.18);
}

.dh-whatsapp-float__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.dh-whatsapp-float__label {
	font-size: 0.86rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

@keyframes dh-whatsapp-pulse {
	0% {
		transform: scale(0.96);
		opacity: 0.75;
	}

	70% {
		transform: scale(1.06);
		opacity: 0;
	}

	100% {
		transform: scale(1.06);
		opacity: 0;
	}
}

.dh-fallback {
	padding: 5rem 0;
}

.dh-blog {
	position: relative;
	min-height: 100vh;
	padding-bottom: 3rem;
}

.dh-blog--single .dh-blog__hero {
	padding-bottom: 1.25rem;
}

.dh-blog--fallback .dh-fallback {
	position: relative;
	z-index: 1;
}

.dh-blog__hero,
.dh-blog__content {
	position: relative;
	z-index: 1;
}

.dh-blog__hero {
	padding-top: 3rem;
	padding-bottom: 2rem;
	text-align: center;
}

.dh-blog__title {
	font-size: clamp(2.3rem, 5vw, 3.8rem);
	line-height: 1.1;
}

.dh-blog__intro {
	max-width: 48rem;
	margin: 1rem auto 0;
	font-size: 1rem;
	line-height: 1.6;
}

.dh-blog__content {
	padding-bottom: 4rem;
}

.dh-blog__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.dh-post-card {
	overflow: hidden;
	border: 1px solid var(--dh-color-border);
	border-radius: var(--dh-radius-sm);
	background: var(--dh-overlay-card);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 24px var(--dh-shadow-card);
}

.dh-post-card--single {
	max-width: 58rem;
	margin: 0 auto;
}

.dh-post-card__media {
	display: block;
	overflow: hidden;
}

.dh-post-card__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.dh-post-card__body {
	padding: 1.5rem;
}

.dh-post-card__meta {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	opacity: 0.8;
}

.dh-post-card__title {
	font-size: clamp(1.4rem, 2vw, 1.9rem);
	line-height: 1.2;
}

.dh-post-card__excerpt,
.dh-post-card__content {
	margin-top: 1rem;
	font-size: 0.98rem;
	line-height: 1.7;
}

.dh-post-card__excerpt p,
.dh-post-card__content p {
	margin-top: 0;
}

.dh-post-card__content label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
	font-weight: 500;
}

.dh-post-card__content input,
.dh-post-card__content textarea,
.dh-post-card__content select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid rgba(242, 241, 240, 0.35);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--dh-color-base);
	font-family: var(--dh-font-body);
	font-size: 0.95rem;
	line-height: 1.4;
}

.dh-post-card__content input::placeholder,
.dh-post-card__content textarea::placeholder {
	color: rgba(242, 241, 240, 0.65);
}

.dh-post-card__content select option {
	background: var(--dh-color-primary);
	color: var(--dh-color-base);
}

.dh-post-card__link {
	display: inline-block;
	margin-top: 1rem;
}

.dh-pagination {
	margin-top: 2rem;
}

.dh-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.dh-pagination .page-numbers {
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--dh-color-border);
	border-radius: var(--dh-radius-sm);
	color: var(--dh-color-base);
	text-decoration: none;
}

.dh-pagination .page-numbers.current {
	background: var(--dh-overlay-button-hover);
}

.dh-blog__empty {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
}

@media (max-width: 960px) {
	.dh-site-header__inner,
	.dh-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.dh-site-nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.dh-site-nav__menu .menu {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem 1.5rem;
	}

	.dh-services__grid,
	.dh-projects__grid,
	.dh-blog__grid,
	.dh-footer__nav {
		grid-template-columns: 1fr;
	}

	.dh-footer__nav {
		width: 100%;
	}
}

@media (max-width: 768px) {
	html,
	body {
		max-width: 100vw;
		overflow-x: hidden;
	}

	.dh-home,
	.dh-blog,
	.dh-shell,
	.dh-site-header,
	.dh-footer,
	.dh-site-header__inner,
	.dh-footer__inner,
	.dh-hero__content,
	.dh-intro__copy,
	.dh-section-text,
	.dh-testimonial__quote,
	.dh-cta__title,
	.dh-blog__intro,
	.dh-post-card--single,
	.dh-post-card,
	.dh-card,
	.dh-project-card,
	.dh-project-card img,
	.dh-intro__visual,
	.dh-intro__visual img,
	img,
	video,
	iframe {
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.dh-shell {
		width: min(calc(100% - 1.5rem), var(--dh-shell-width));
	}

	.dh-whatsapp-float {
		right: 0.9rem;
		bottom: 1rem;
		padding: 0.7rem 0.9rem 0.7rem 0.75rem;
		gap: 0.65rem;
	}

	.dh-whatsapp-float__icon {
		width: 2.6rem;
		height: 2.6rem;
	}

	.dh-whatsapp-float__label {
		font-size: 0.74rem;
	}

	.dh-site-header__inner,
	.dh-footer__inner,
	.dh-post-card__body,
	.dh-card,
	.dh-project-card,
	.dh-intro__visual,
	.dh-intro__copy {
		padding-left: min(1rem, 4vw);
		padding-right: min(1rem, 4vw);
	}

	.dh-site-header {
		padding-top: 0.75rem;
	}

	.dh-blog__title,
	.dh-hero__title,
	.dh-cta__title {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		font-size: 32px;
		line-height: 1.15;
		text-align: center;
		text-wrap: balance;
	}

	.dh-section-title,
	.dh-card__title {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		text-align: center;
		text-wrap: balance;
	}

	.dh-section-title {
		font-size: 27px;
		line-height: 1.2;
	}

	.dh-card__title {
		font-size: 22px;
		line-height: 1.2;
	}

	.dh-cta__title {
		font-size: 30px;
		line-height: 1.15;
	}

	.dh-site-nav {
		width: 100%;
		justify-content: center;
	}

	.dh-site-nav__menu {
		width: 100%;
	}

	.dh-site-nav__menu .menu {
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 0.65rem;
		white-space: nowrap;
	}

	.dh-site-nav__menu .menu-item a {
		font-size: 0.82rem;
		padding: 0.2rem 0.1rem;
	}

	.dh-site-header__inner {
		align-items: center;
		text-align: center;
	}

	.dh-site-header__brand,
	.dh-footer__brand {
		padding: 0.4rem;
	}

	.custom-logo-link,
	.dh-logo {
		width: min(180px, 100%);
		min-width: max(var(--dh-logo-min-width), 3.7rem);
	}

	.dh-hero {
		padding-top: 2rem;
		padding-bottom: 3rem;
	}

	.dh-intro,
	.dh-services,
	.dh-projects,
	.dh-testimonial,
	.dh-cta {
		padding-bottom: 3rem;
	}

	.dh-card {
		min-height: auto;
	}

	.dh-project-card img {
		aspect-ratio: 16 / 10;
	}

	.dh-intro__visual--service img {
		max-height: none;
	}
}
