/**
 * Bloques Gutenberg / canvas home (.ds-home-canvas, patrones legacy).
 * No se carga en la portada landing PHP DITS (menos CSS no usado).
 * @package orbital-child
 */

.ds-home-canvas {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.ds-home-canvas > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Secciones genéricas */
.ds-home-canvas .ds-home-section {
	padding-block: var(--ds-home-y);
	padding-inline: var(--ds-home-x);
	box-sizing: border-box;
}

.ds-home-canvas .ds-home-section .alignwide,
.ds-home-canvas .ds-home-section .alignfull .wp-block-group__inner-container {
	max-width: var(--ds-home-max);
	margin-left: auto;
	margin-right: auto;
}

/* Hero v2 */
.ds-home-canvas .ds-hero-v2 {
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(2.5rem, 8vw, 5rem);
}

@media (min-width: 782px) {
	.ds-home-canvas .ds-hero-v2 {
		align-items: center;
		padding-bottom: 0;
	}
}

.ds-home-canvas .ds-hero-v2 .wp-block-cover__inner-container {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.ds-home-canvas .ds-hero-v2__eyebrow {
	font-family: var(--ds-font-body);
	font-size: 0.68rem !important;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--brand-blue, #0d3570) !important;
	opacity: 1;
	margin-bottom: 1rem !important;
}

.ds-home-canvas .ds-hero-v2__title {
	font-family: var(--ds-font-display, "DM Serif Display", serif) !important;
	font-size: clamp(2.35rem, 7vw, 4.25rem) !important;
	font-weight: 600 !important;
	line-height: 1.06 !important;
	letter-spacing: -0.02em;
	margin-bottom: 1.25rem !important;
	color: var(--brand-blue, #0d3570) !important;
}

.ds-home-canvas .ds-hero-v2__lead {
	font-family: var(--ds-font-body);
	font-size: clamp(0.95rem, 2.4vw, 1.1rem) !important;
	line-height: 1.65;
	color: var(--text-muted, #434a54) !important;
	max-width: 38rem;
	margin-inline: auto !important;
	margin-bottom: 2rem !important;
}

.ds-home-canvas .ds-hero-v2__ctas {
	gap: 0.75rem 1rem !important;
	justify-content: center !important;
	margin-bottom: 1.5rem !important;
}

.ds-home-canvas .ds-hero-v2__ctas .wp-block-button__link {
	min-height: 48px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding-left: 1.75rem !important;
	padding-right: 1.75rem !important;
}

.ds-home-canvas .ds-btn-ghost .wp-block-button__link {
	background: transparent !important;
	border: 1px solid rgba(13, 53, 112, 0.35) !important;
	color: var(--brand-blue, #0d3570) !important;
}

.ds-home-canvas .ds-btn-ghost .wp-block-button__link:hover {
	border-color: var(--accent-sand, #e8bf96) !important;
	color: var(--brand-blue-2, #202c58) !important;
}

.ds-home-canvas .ds-hero-v2__micro {
	opacity: 1;
	max-width: 28rem;
	margin-inline: auto !important;
	font-size: 0.72rem !important;
	line-height: 1.5;
	color: var(--brand-blue, #0d3570) !important;
}

/* Valor inmediato */
.ds-home-value {
	background: linear-gradient(180deg, var(--bg-soft, #ede5da) 0%, var(--bg-main, #f5f0e8) 100%);
	border-top: 1px solid var(--ds-home-line);
	border-bottom: 1px solid var(--ds-home-line);
}

.ds-home-canvas .ds-value-columns {
	gap: clamp(1.25rem, 4vw, 2.5rem) !important;
}

@media (max-width: 781px) {
	.ds-home-canvas .ds-value-columns {
		flex-direction: column !important;
	}
}

.ds-home-canvas .ds-value-card {
	background: var(--surface, #fffdf9);
	border: 1px solid var(--border-soft, #d9cbb8);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(13, 53, 112, 0.06);
	transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.ds-home-canvas .ds-value-card:hover {
	border-color: rgba(232, 191, 150, 0.85);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(13, 53, 112, 0.08);
}

.ds-home-canvas .ds-value-card__title {
	font-family: var(--ds-font-display) !important;
	font-size: clamp(1.15rem, 2.5vw, 1.35rem) !important;
	font-weight: 600 !important;
	margin-bottom: 0.5rem !important;
	color: var(--brand-blue, #0d3570) !important;
}

.ds-home-canvas .ds-value-card__text {
	font-size: 0.9rem !important;
	line-height: 1.6;
	color: var(--text-muted, #434a54) !important;
	margin: 0 !important;
}

/* Cabeceras de sección */
.ds-home-canvas .ds-section-head {
	text-align: center;
	margin-bottom: 0.5rem;
}

.ds-home-canvas .ds-section-eyebrow {
	font-size: 0.68rem !important;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--brand-blue, #0d3570) !important;
	opacity: 1;
	margin-bottom: 0.35rem !important;
}

.ds-home-canvas .ds-section-title {
	font-family: var(--ds-font-display) !important;
	font-size: clamp(1.65rem, 4.2vw, 2.35rem) !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	margin-bottom: 0.75rem !important;
	color: var(--brand-blue, #0d3570) !important;
}

.ds-home-canvas .ds-section-lead {
	font-size: 0.95rem !important;
	line-height: 1.65;
	color: var(--text-muted, #434a54) !important;
	max-width: 42rem;
	margin-inline: auto !important;
}

.ds-home-canvas .ds-placeholder {
	font-size: 0.88rem !important;
	color: #5a616d !important;
}

/* Ciudades */
.ds-home-cities {
	background: var(--bg-soft, #ede5da);
}

/* B2B */
.ds-home-b2b-band {
	background: linear-gradient(105deg, rgba(232, 191, 150, 0.2) 0%, rgba(255, 253, 249, 0.95) 48%, rgba(237, 229, 218, 0.9) 100%) !important;
	border-block: 1px solid var(--ds-home-line) !important;
	text-align: center;
}

.ds-home-canvas .ds-b2b-eyebrow {
	font-size: 0.68rem !important;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ds-gold, #c4984a) !important;
	margin-bottom: 0.5rem !important;
}

.ds-home-canvas .ds-b2b-title {
	font-family: var(--ds-font-display) !important;
	font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
	margin-bottom: 1rem !important;
}

.ds-home-canvas .ds-b2b-copy {
	max-width: 36rem;
	margin-inline: auto !important;
	margin-bottom: 1.75rem !important;
	color: var(--text-muted, #5f6470) !important;
	line-height: 1.65;
}

/* Prueba social */
.ds-home-proof {
	background: rgba(13, 53, 112, 0.04);
}

/* Gastronomía split */
.ds-home-gastro .ds-split {
	gap: clamp(1.5rem, 4vw, 3rem) !important;
}

@media (max-width: 781px) {
	.ds-home-gastro .ds-split {
		flex-direction: column-reverse !important;
	}
}

.ds-home-canvas .ds-gastro-visual-placeholder {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	border: 1px dashed rgba(13, 53, 112, 0.2);
	color: var(--text-muted, #5f6470) !important;
	font-size: 0.88rem !important;
	background: var(--surface, #fffdf9);
	border-radius: 14px;
}

/* Seguridad */
.ds-home-safety {
	border-bottom: 1px solid var(--ds-home-line);
}

/* Cierre CRO */
.ds-home-close {
	padding-block: calc(var(--ds-home-y) * 1.05) !important;
	background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 191, 150, 0.18), transparent 55%);
}

.ds-home-canvas .ds-close-title {
	font-family: var(--ds-font-display) !important;
	font-size: clamp(1.75rem, 4.5vw, 2.5rem) !important;
	margin-bottom: 0.75rem !important;
}

.ds-home-canvas .ds-close-lead {
	margin-bottom: 1.75rem !important;
}

.ds-home-canvas .ds-close-ctas {
	gap: 0.75rem 1rem !important;
}

/* Editorial / blog */
.ds-home-editorial {
	padding-top: calc(var(--ds-home-y) * 0.85);
	padding-bottom: calc(var(--ds-home-y) * 1.1);
}

.ds-home-editorial .wp-block-separator {
	border-color: var(--ds-home-line);
	margin-bottom: 2rem;
	opacity: 1;
}

/* Espaciado entre bloques top-level */
.ds-home-canvas > * + * {
	margin-top: 0 !important;
}

/* Botones core dentro del canvas home */
.ds-home-canvas .wp-block-button .wp-block-button__link {
	border-radius: 0;
}
