/**
 * Premium styles for /nosotros/ (custom .dmary-nosotros markup)
 */

.page-id-628 .entry-header .page-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.dmary-nosotros {
	--dn-ink: #1f1c1a;
	--dn-muted: #6a645c;
	--dn-line: rgba(31, 28, 26, 0.1);
	--dn-sand: #f6f3ee;
	--dn-cream: #faf8f5;
	--dn-sage: #5c6b5a;
	--dn-teal: #1a9ea3;
	--dn-navy: #163a5f;
	--dn-ease: cubic-bezier(0.22, 1, 0.36, 1);
	color: var(--dn-ink);
	font-size: 1.05rem;
	line-height: 1.7;
}

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

.dmary-container {
	width: min(100% - 2.5rem, 1080px);
	margin-inline: auto;
}

.dmary-nosotros section {
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.dmary-nosotros h1,
.dmary-nosotros h2,
.dmary-nosotros h3 {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--dn-ink);
	margin: 0 0 1rem;
}

.dmary-nosotros h1 {
	font-size: clamp(2rem, 4.5vw, 3.15rem);
	max-width: 14ch;
}

.dmary-nosotros h2 {
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	max-width: 20ch;
}

.dmary-nosotros h3 {
	font-size: 1.2rem;
	margin-bottom: 0.55rem;
}

.dmary-nosotros p {
	margin: 0 0 1.1rem;
	color: var(--dn-muted);
	max-width: 62ch;
}

.dmary-nosotros p strong {
	color: var(--dn-ink);
	font-weight: 650;
}

.dmary-section-intro {
	margin-bottom: 2.25rem !important;
	font-size: 1.08rem;
}

/* ------------------------------------------------------------------
   Intro / hero
------------------------------------------------------------------ */
.dmary-about-intro {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4.5rem, 10vw, 8rem) !important;
	color: #fff;
	background:
		linear-gradient(105deg, rgba(22, 30, 28, 0.78) 0%, rgba(22, 30, 28, 0.45) 48%, rgba(22, 30, 28, 0.28) 100%),
		url("../images/nosotros/nosotros-hero-bed.jpg") center / cover no-repeat;
	overflow: hidden;
}

.dmary-about-intro .dmary-container {
	position: relative;
	z-index: 1;
}

.dmary-about-intro h1,
.dmary-about-intro p,
.dmary-about-intro strong {
	color: #fff;
}

.dmary-about-intro p {
	color: rgba(255, 255, 255, 0.88);
	max-width: 38rem;
	font-size: clamp(1.05rem, 1.5vw, 1.18rem);
}

.dmary-about-intro::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 4.5rem;
	background: linear-gradient(to top, var(--dn-cream), transparent);
	pointer-events: none;
}

/* ------------------------------------------------------------------
   Philosophy / values
------------------------------------------------------------------ */
.dmary-philosophy {
	background: var(--dn-cream);
}

.dmary-values {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

@media (min-width: 700px) {
	.dmary-values {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (min-width: 1000px) {
	.dmary-values {
		grid-template-columns: repeat(4, 1fr);
	}
}

.dmary-value {
	padding: 1.35rem 1.25rem 1.45rem;
	border-top: 2px solid var(--dn-sage);
	background: rgba(255, 255, 255, 0.72);
	transition: transform 0.35s var(--dn-ease), box-shadow 0.35s var(--dn-ease);
}

.dmary-value:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(31, 28, 26, 0.08);
}

.dmary-value p {
	margin-bottom: 0;
	font-size: 0.98rem;
}

/* ------------------------------------------------------------------
   Categories with image panels
------------------------------------------------------------------ */
.dmary-categories {
	background: #fff;
}

.dmary-category-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

@media (min-width: 700px) {
	.dmary-category-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

.dmary-category {
	position: relative;
	min-height: 220px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background-color: #2a2724;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 0.4s var(--dn-ease);
}

.dmary-category::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 14, 12, 0.82) 0%, rgba(15, 14, 12, 0.25) 55%, rgba(15, 14, 12, 0.12) 100%);
	z-index: 0;
	transition: background 0.4s var(--dn-ease);
}

.dmary-category > * {
	position: relative;
	z-index: 1;
}

.dmary-category h3,
.dmary-category p {
	color: #fff;
}

.dmary-category p {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	max-width: none;
}

.dmary-category:hover {
	transform: translateY(-4px);
}

.dmary-category:hover::before {
	background: linear-gradient(to top, rgba(15, 14, 12, 0.88) 0%, rgba(15, 14, 12, 0.35) 60%, rgba(15, 14, 12, 0.18) 100%);
}

.dmary-category:nth-child(1) {
	background-image: url("../images/nosotros/nosotros-hogar.jpg");
}

.dmary-category:nth-child(2) {
	background-image: url("../images/nosotros/nosotros-blancos.jpg");
}

.dmary-category:nth-child(3) {
	background-image: url("../images/nosotros/nosotros-ropa.jpg");
}

.dmary-category:nth-child(4) {
	background-image: url("../images/nosotros/nosotros-hero-bed.jpg");
	background-position: 50% 70%;
}

/* ------------------------------------------------------------------
   Different / highlights
------------------------------------------------------------------ */
.dmary-different {
	background: var(--dn-sand);
}

.dmary-highlights {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 800px) {
	.dmary-highlights {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.dmary-highlight {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--dn-line);
}

.dmary-highlight strong {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--dn-ink);
}

.dmary-highlight span {
	color: var(--dn-muted);
	line-height: 1.6;
	font-size: 0.98rem;
}

/* ------------------------------------------------------------------
   Commitment
------------------------------------------------------------------ */
.dmary-commitment {
	background: #fff;
}

.dmary-commitment .dmary-container {
	max-width: 760px;
}

/* ------------------------------------------------------------------
   Brand message band
------------------------------------------------------------------ */
.dmary-brand-message {
	position: relative;
	isolation: isolate;
	text-align: center;
	padding-block: clamp(4rem, 9vw, 6.5rem) !important;
	background:
		linear-gradient(rgba(22, 58, 95, 0.72), rgba(26, 158, 163, 0.55)),
		url("../images/nosotros/nosotros-blancos.jpg") center / cover no-repeat;
	color: #fff;
}

.dmary-brand-message h2,
.dmary-brand-message p {
	color: #fff;
	margin-inline: auto;
}

.dmary-brand-message h2 {
	max-width: 16ch;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.dmary-brand-message p {
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

/* ------------------------------------------------------------------
   CTA
------------------------------------------------------------------ */
.dmary-cta {
	background: var(--dn-cream);
	text-align: center;
}

.dmary-cta h2,
.dmary-cta p {
	margin-inline: auto;
}

.dmary-cta p {
	margin-bottom: 1.75rem;
}

.dmary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.6rem;
	border-radius: 3px;
	background: var(--dn-navy);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: transform 0.25s var(--dn-ease), background 0.25s var(--dn-ease), box-shadow 0.25s var(--dn-ease);
}

.dmary-button:hover {
	background: var(--dn-teal);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(22, 58, 95, 0.18);
	color: #fff !important;
}

/* Motion: gentle reveal */
@media (prefers-reduced-motion: no-preference) {
	.dmary-value,
	.dmary-category,
	.dmary-highlight {
		animation: dmaryFadeUp 0.7s var(--dn-ease) both;
	}

	.dmary-value:nth-child(2),
	.dmary-category:nth-child(2),
	.dmary-highlight:nth-child(2) {
		animation-delay: 0.06s;
	}

	.dmary-value:nth-child(3),
	.dmary-category:nth-child(3),
	.dmary-highlight:nth-child(3) {
		animation-delay: 0.12s;
	}

	.dmary-value:nth-child(4),
	.dmary-category:nth-child(4) {
		animation-delay: 0.18s;
	}
}

@keyframes dmaryFadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
