/**
 * Estilos Oficiales de Constanza Boutique — Nuestra historia.
 * Encapsulados bajo .ctzh-nuestra-historia-wrap y conectados al Sistema de Diseño de Bersoft (--bs-*).
 *
 * @package Constanza_Nuestra_Historia
 * @since   1.0.0
 */

.ctzh-nuestra-historia-wrap {
	--ctzh-font-heading: var(--bs-font-heading, "The Seasons", Georgia, "Times New Roman", serif);
	--ctzh-font-body: var(--bs-font-body, "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	--ctzh-container-max: 1320px;
	--ctzh-gutter: 32px;
	--ctzh-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

	width: 100%;
	background-color: var(--ctzh-color-bg, #FFF9F3);
	color: var(--ctzh-color-text, #2E4239);
	font-family: var(--ctzh-font-body);
	font-size: clamp(calc(var(--ctzh-body-px, 17px) * 0.9), 1.4vw, var(--ctzh-body-px, 17px));
	font-weight: var(--ctzh-body-weight, 400);
	line-height: 1.7;
	overflow-x: clip;
	box-sizing: border-box;
}

.ctzh-nuestra-historia-wrap *,
.ctzh-nuestra-historia-wrap *::before,
.ctzh-nuestra-historia-wrap *::after {
	box-sizing: border-box;
}

.ctzh-nuestra-historia-wrap ::selection {
	background-color: rgba(196, 121, 95, 0.2);
	color: var(--ctzh-color-text, #2E4239);
}

.ctzh-container {
	width: 100%;
	max-width: var(--ctzh-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ctzh-gutter);
	padding-right: var(--ctzh-gutter);
}

/* Espaciado general por sección (configurable en escritorio y celular sin usar rem/clamp en el backend) */
.ctzh-section {
	padding-top: clamp(var(--ctzh-space-mob-top, 28px), 4.2vw, var(--ctzh-space-desk-top, 48px));
	padding-bottom: clamp(var(--ctzh-space-mob-bottom, 28px), 4.2vw, var(--ctzh-space-desk-bottom, 48px));
	background-color: var(--ctzh-color-bg, #FFF9F3);
}

/* ==========================================================================
   1. PRESENTACIÓN ("CONSTANZA BOUTIQUE" + H1 "Nuestra historia" + Foto 1)
   ========================================================================== */
.ctzh-presentacion-section {
	padding-top: clamp(var(--ctzh-space-mob-top, 28px), 3.6vw, var(--ctzh-space-desk-top, 48px));
}

.ctzh-presentacion-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	align-items: center;
	gap: clamp(28px, 4.5vw, 64px);
}

.ctzh-presentacion-copy {
	max-width: 46ch;
}

.ctzh-eyebrow {
	margin: 0 0 12px !important;
	font-family: var(--ctzh-font-body);
	font-size: var(--ctzh-eyebrow-px, 13px);
	font-weight: var(--ctzh-eyebrow-weight, 500);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--ctzh-color-text, #2E4239);
}

.ctzh-eyebrow-rule {
	display: block;
	width: 52px;
	height: 2px;
	background-color: var(--ctzh-color-eyebrow-line, #CFAB69);
	margin-bottom: clamp(18px, 2.4vw, 26px);
}

.ctzh-hero-heading {
	margin: 0 0 clamp(16px, 2vw, 22px) !important;
	font-family: var(--ctzh-font-heading);
	font-size: clamp(calc(var(--ctzh-h1-px, 64px) * 0.65), 4.8vw, var(--ctzh-h1-px, 64px));
	font-weight: var(--ctzh-h1-weight, 400);
	line-height: 1.06;
	letter-spacing: -0.01em;
	color: var(--ctzh-color-accent, #C4795F);
	text-wrap: balance;
}

.ctzh-presentacion-intro {
	max-width: 40ch;
}

.ctzh-presentacion-media,
.ctzh-split-media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ctzh-img-ratio, 5 / 4);
	overflow: hidden;
	background-color: rgba(215, 193, 174, 0.18);
}

.ctzh-photo-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 600ms var(--ctzh-ease-out);
}

@media (hover: hover) {
	.ctzh-presentacion-media:hover .ctzh-photo-img,
	.ctzh-split-media:hover .ctzh-photo-img {
		transform: scale(1.02);
	}
}

/* ==========================================================================
   2. BLOQUE EDITORIAL IMAGEN + TEXTO (Historia y bloques nuevos)
   ========================================================================== */
.ctzh-split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 68px);
}

.ctzh-split-grid.is-single-col {
	grid-template-columns: minmax(0, 68ch);
	justify-content: center;
}

.ctzh-split-section.is-media-right .ctzh-split-media {
	order: 2;
}

.ctzh-split-section.is-media-right .ctzh-split-copy {
	order: 1;
}

.ctzh-split-copy {
	max-width: 54ch;
}

/* Títulos de bloques adicionales y prosa */
.ctzh-h2-heading {
	margin: 0 0 16px !important;
	font-family: var(--ctzh-font-heading);
	font-size: clamp(calc(var(--ctzh-h2-px, 40px) * 0.72), 3vw, var(--ctzh-h2-px, 40px));
	font-weight: var(--ctzh-h2-weight, 400);
	line-height: 1.2;
	color: var(--ctzh-color-text, #2E4239);
	text-wrap: balance;
}

.ctzh-h3-heading {
	margin: 0 0 12px !important;
	font-family: var(--ctzh-font-body);
	font-size: clamp(calc(var(--ctzh-h3-px, 26px) * 0.8), 2vw, var(--ctzh-h3-px, 26px));
	font-weight: var(--ctzh-h3-weight, 500);
	line-height: 1.3;
	color: var(--ctzh-color-text, #2E4239);
}

.ctzh-prose p {
	margin: 0 0 1.25em !important;
	font-family: var(--ctzh-font-body);
	font-size: clamp(calc(var(--ctzh-body-px, 17px) * 0.9), 1.35vw, var(--ctzh-body-px, 17px));
	font-weight: var(--ctzh-body-weight, 400);
	line-height: 1.68;
	color: var(--ctzh-color-text, #2E4239);
}

.ctzh-prose p:last-child {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   3. ACOMPAÑAMIENTO / BLOQUES CENTRADOS DE TEXTO
   ========================================================================== */
.ctzh-centered-reading {
	max-width: 68ch;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.ctzh-centered-reading .ctzh-prose p {
	text-wrap: pretty;
}

/* ==========================================================================
   4. CIERRE PROTAGONISTA SOBRE FONDO VERDE + BOTÓN PILL
   ========================================================================== */
.ctzh-closing-section {
	margin-top: clamp(8px, 1.5vw, 20px);
	padding-top: clamp(var(--ctzh-closing-mob-y, 52px), 5.6vw, var(--ctzh-closing-desk-y, 72px));
	padding-bottom: clamp(var(--ctzh-closing-mob-y, 52px), 5.6vw, var(--ctzh-closing-desk-y, 72px));
	text-align: center;
}

.ctzh-closing-section.is-surface-green {
	background-color: var(--ctzh-color-closing-bg, #2E4239);
	color: var(--ctzh-color-closing-text, #FFF9F3);
}

.ctzh-closing-section.is-surface-cream {
	background-color: var(--ctzh-color-bg, #FFF9F3);
	color: var(--ctzh-color-text, #2E4239);
	border-top: 1px solid var(--ctzh-color-border, #D7C1AE);
}

.ctzh-closing-inner {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.ctzh-closing-statement {
	margin: 0 !important;
	font-family: var(--ctzh-font-heading);
	font-size: clamp(calc(var(--ctzh-h2-px, 40px) * 0.72), 3.2vw, var(--ctzh-h2-px, 40px));
	font-weight: var(--ctzh-h2-weight, 400);
	line-height: 1.24;
	color: currentColor;
	text-wrap: balance;
}

.ctzh-closing-copy {
	max-width: 60ch;
	margin: 18px auto 0;
}

.ctzh-closing-copy p {
	margin: 0 0 1em !important;
	font-size: clamp(calc(var(--ctzh-body-px, 17px) * 0.9), 1.35vw, var(--ctzh-body-px, 17px));
	color: currentColor;
	opacity: 0.92;
}

.ctzh-closing-copy p:last-child {
	margin-bottom: 0 !important;
}

.ctzh-closing-cta-wrap {
	margin-top: clamp(24px, 2.8vw, 32px);
}

.ctzh-inline-actions {
	margin-top: 22px;
}

.ctzh-inline-actions.is-centered {
	display: flex;
	justify-content: center;
}

/* Botones accesibles alineados con la maqueta */
.ctzh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 34px;
	border-radius: 9999px;
	font-family: var(--ctzh-font-body);
	font-size: var(--ctzh-btn-px, 15px);
	font-weight: var(--ctzh-btn-weight, 600);
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 220ms var(--ctzh-ease-out),
		color 220ms var(--ctzh-ease-out),
		border-color 220ms var(--ctzh-ease-out),
		transform 180ms var(--ctzh-ease-out);
}

.ctzh-btn-outline-light {
	border: 1.5px solid var(--ctzh-color-closing-text, #FFF9F3);
	background-color: transparent;
	color: var(--ctzh-color-closing-text, #FFF9F3) !important;
}

.ctzh-closing-section.is-surface-cream .ctzh-btn-outline-light {
	border-color: var(--ctzh-color-text, #2E4239);
	color: var(--ctzh-color-text, #2E4239) !important;
}

@media (hover: hover) {
	.ctzh-btn-outline-light:hover {
		background-color: var(--ctzh-color-closing-text, #FFF9F3);
		color: var(--ctzh-color-closing-bg, #2E4239) !important;
		transform: translateY(-1px);
	}

	.ctzh-closing-section.is-surface-cream .ctzh-btn-outline-light:hover {
		background-color: var(--ctzh-color-text, #2E4239);
		color: var(--ctzh-color-bg, #FFF9F3) !important;
	}
}

.ctzh-btn-dark {
	border: 1.5px solid var(--ctzh-color-text, #2E4239);
	background-color: var(--ctzh-color-text, #2E4239);
	color: var(--ctzh-color-bg, #FFF9F3) !important;
}

@media (hover: hover) {
	.ctzh-btn-dark:hover {
		background-color: var(--ctzh-color-accent, #C4795F);
		border-color: var(--ctzh-color-accent, #C4795F);
		transform: translateY(-1px);
	}
}

.ctzh-btn:active {
	transform: scale(0.97);
}

.ctzh-btn.is-static {
	cursor: default;
	opacity: 0.78;
}

.ctzh-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.ctzh-closing-section.is-surface-green .ctzh-btn:focus-visible {
	outline-color: var(--ctzh-color-eyebrow-line, #CFAB69);
}

/* ==========================================================================
   5. RESPONSIVO TABLET (<= 1024px) Y CELULAR (<= 767px)
   ========================================================================== */
@media (max-width: 1024px) {
	.ctzh-nuestra-historia-wrap {
		--ctzh-gutter: 24px;
	}

	.ctzh-presentacion-grid {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		gap: 32px;
	}

	.ctzh-split-grid {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.ctzh-nuestra-historia-wrap {
		--ctzh-gutter: 20px;
	}

	.ctzh-presentacion-grid,
	.ctzh-split-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ctzh-presentacion-copy {
		max-width: 100%;
	}

	.ctzh-split-section.is-media-right .ctzh-split-media,
	.ctzh-split-section.is-media-right .ctzh-split-copy {
		order: initial;
	}

	.ctzh-split-copy {
		max-width: 100%;
	}

	.ctzh-centered-reading {
		text-align: left;
	}

	.ctzh-btn {
		width: auto;
		max-width: 100%;
		padding: 12px 28px;
	}
}

/* ==========================================================================
   6. PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ctzh-photo-img,
	.ctzh-btn {
		transition: none !important;
	}

	.ctzh-presentacion-media:hover .ctzh-photo-img,
	.ctzh-split-media:hover .ctzh-photo-img,
	.ctzh-btn:hover,
	.ctzh-btn:active {
		transform: none !important;
	}
}
