/* ============================================================
 * Legado Premium · v4.0.0
 * Diseño luxury hotel boutique para sección "El Hotel"
 * Título impactante · Gallery artística · Badge año flotante
 * ============================================================ */

.sm-front-legado--premium {
	position: relative;
	padding: 64px 0 72px;
	background: linear-gradient(180deg, #F8F5F2 0%, #F1EDE8 100%);
	overflow: hidden;
}

/* Decoraciones de fondo · año gigante translúcido + ornamento */
.sm-front-legado__bg-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.sm-front-legado__bg-year {
	position: absolute;
	top: 50%;
	left: -50px;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: center;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 280px;
	font-weight: 300;
	font-style: italic;
	color: rgba(201, 164, 74, 0.06);
	letter-spacing: -0.02em;
	line-height: 0.8;
	user-select: none;
	white-space: nowrap;
}

.sm-front-legado__bg-ornament {
	position: absolute;
	bottom: 60px;
	right: 60px;
	width: 200px;
	height: 200px;
	color: rgba(201, 164, 74, 0.08);
	opacity: 0.5;
}

/* INNER · grid asimétrico premium */
.sm-front-legado__inner {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 50px;
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 64px;
	align-items: center;
}

/* ─── COLUMNA IZQUIERDA · TEXTO ─────────────────────── */
.sm-front-legado__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 560px;
}

/* Eyebrow con icono */
.sm-front-legado__text .sm-eyebrow {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: #C9A44A;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 18px;
	background: rgba(201, 164, 74, 0.08);
	border: 1px solid rgba(201, 164, 74, 0.25);
	border-radius: 100px;
	width: fit-content;
}

.sm-front-legado__text .sm-eyebrow::before,
.sm-front-legado__text .sm-eyebrow::after {
	display: none !important;
}

.sm-front-legado__eyebrow-icon {
	display: inline-flex;
	color: #C9A44A;
}

/* TÍTULO IMPACTANTE */
.sm-front-legado__title {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-weight: 400 !important;
	color: #00075A !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 0.95 !important;
}

.sm-front-legado__title-script {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 32px;
	font-weight: 400;
	font-style: italic;
	color: #C9A44A;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.sm-front-legado__title-script::before {
	content: '';
	display: inline-block;
	width: 30px;
	height: 1px;
	background: #C9A44A;
	opacity: 0.6;
}

.sm-front-legado__title-main {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(56px, 7vw, 96px);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #00075A;
	line-height: 0.95;
}

/* Rule con diamante */
.sm-front-legado__rule {
	position: relative;
	width: 80px;
	height: 1px;
	background: linear-gradient(90deg, #C9A44A 0%, rgba(201, 164, 74, 0.2) 100%);
	margin: 8px 0;
	display: flex !important;
	align-items: center;
}

.sm-front-legado__rule-diamond {
	position: absolute;
	left: -8px;
	top: 50%;
	transform: translateY(-50%);
	color: #C9A44A;
	font-size: 8px;
	background: var(--sm-bg, #F8F5F2);
	padding: 0 2px;
}

/* Lead frase destacada serif itálica */
.sm-front-legado__lead {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	font-style: italic;
	color: #1F2B6E;
	line-height: 1.4;
	margin: 0;
	letter-spacing: 0.005em;
}

/* Copy descriptivo */
.sm-front-legado__copy {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: #6B7299;
	line-height: 1.8;
	margin: 0;
}

/* Features grid · 3 con iconos dorados */
.sm-front-legado__features {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid rgba(201, 164, 74, 0.18);
	border-bottom: 1px solid rgba(201, 164, 74, 0.18);
	margin: 4px 0;
}

.sm-front-legado__feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.sm-front-legado__feature svg {
	color: #C9A44A;
	flex-shrink: 0;
}

.sm-front-legado__feature span {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #00075A;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

/* Stats wrap con stats horizontales y dividers */
.sm-front-legado__stats-wrap {
	padding: 4px 0;
}

.sm-front-legado__stats {
	display: flex !important;
	align-items: center;
	gap: 0 !important;
	margin: 0;
}

.sm-front-legado__stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 0 24px 0 0;
}

.sm-front-legado__stat:first-child {
	padding-left: 0;
}

.sm-front-legado__stat-divider {
	width: 1px;
	height: 48px;
	background: linear-gradient(180deg, transparent 0%, rgba(201, 164, 74, 0.5) 50%, transparent 100%);
	flex-shrink: 0;
	margin-right: 24px;
}

.sm-front-legado__stat-num {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 36px !important;
	font-weight: 500 !important;
	color: #C9A44A !important;
	line-height: 1 !important;
	letter-spacing: 0.005em !important;
	margin: 0 !important;
}

.sm-front-legado__stat-label {
	font-family: 'Inter', system-ui, sans-serif !important;
	font-size: 9.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	color: #6B7299 !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

/* CTA premium con flecha animada */
.sm-front-legado__link {
	display: inline-flex !important;
	align-items: center;
	gap: 14px;
	padding: 16px 28px !important;
	background: #00075A;
	color: #ffffff !important;
	font-family: 'Inter', system-ui, sans-serif !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.24em !important;
	text-transform: uppercase;
	width: fit-content !important;
	border-radius: 2px !important;
	border: 0 !important;
	box-shadow: 0 8px 24px rgba(0, 7, 90, 0.2);
	transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
	text-decoration: none !important;
	margin-top: 8px;
	position: relative;
	overflow: hidden;
}

.sm-front-legado__link::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #C9A44A 0%, #B08A32 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
}

.sm-front-legado__link:hover::before {
	opacity: 1;
}

.sm-front-legado__link-text,
.sm-front-legado__link-arrow {
	position: relative;
	z-index: 1;
}

.sm-front-legado__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(201, 164, 74, 0.4);
}

.sm-front-legado__link-arrow {
	display: inline-flex;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
}

.sm-front-legado__link:hover .sm-front-legado__link-arrow {
	background: rgba(255, 255, 255, 0.95);
	color: #00075A;
	transform: translateX(4px);
}

/* ─── COLUMNA DERECHA · GALLERY ARTÍSTICA ─────────── */
.sm-front-legado__gallery {
	position: relative;
	display: grid !important;
	grid-template-columns: 1.3fr 1fr !important;
	grid-template-rows: 1fr 1fr !important;
	gap: 16px !important;
	height: 640px;
}

/* Imagen principal grande izquierda · ocupa 2 filas */
.sm-front-legado__img--main {
	grid-column: 1 !important;
	grid-row: 1 / span 2 !important;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	box-shadow:
		0 4px 16px rgba(0, 7, 90, 0.1),
		0 16px 48px rgba(0, 7, 90, 0.14);
	transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sm-front-legado__img--top {
	grid-column: 2 !important;
	grid-row: 1 !important;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	box-shadow:
		0 4px 16px rgba(0, 7, 90, 0.1),
		0 16px 40px rgba(0, 7, 90, 0.12);
	transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sm-front-legado__img--bottom {
	grid-column: 2 !important;
	grid-row: 2 !important;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	box-shadow:
		0 4px 16px rgba(0, 7, 90, 0.1),
		0 16px 40px rgba(0, 7, 90, 0.12);
	transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sm-front-legado__img {
	background-size: cover !important;
	background-position: center !important;
}

.sm-front-legado__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sm-front-legado__img:hover {
	transform: translateY(-6px);
	box-shadow:
		0 8px 20px rgba(0, 7, 90, 0.12),
		0 32px 72px rgba(0, 7, 90, 0.22);
}

.sm-front-legado__img:hover img {
	transform: scale(1.08);
}

/* Overlay gradient sutil en cada imagen */
.sm-front-legado__img-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 7, 90, 0.4) 100%);
	pointer-events: none;
	z-index: 2;
}

/* BADGE AÑO FLOTANTE · sobre imagen principal */
.sm-front-legado__year-badge {
	position: absolute;
	bottom: 24px;
	left: 24px;
	z-index: 3;
	background: linear-gradient(135deg, rgba(0, 7, 90, 0.95) 0%, rgba(0, 7, 65, 0.95) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(201, 164, 74, 0.35);
	padding: 20px 24px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	box-shadow: 0 16px 40px rgba(0, 7, 90, 0.4);
	min-width: 180px;
}

.sm-front-legado__year-since {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 9px;
	letter-spacing: 0.36em;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 600;
}

.sm-front-legado__year-value {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 44px;
	font-weight: 500;
	color: #C9A44A;
	line-height: 1;
	letter-spacing: 0.01em;
	margin: 2px 0;
}

.sm-front-legado__year-divider {
	width: 32px;
	height: 1px;
	background: rgba(201, 164, 74, 0.6);
	margin: 4px 0;
}

.sm-front-legado__year-tagline {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 13px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	letter-spacing: 0.02em;
}

/* Esquina dorada decorativa */
.sm-front-legado__gallery-corner {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 80px;
	height: 80px;
	border-top: 2px solid #C9A44A;
	border-right: 2px solid #C9A44A;
	opacity: 0.4;
	pointer-events: none;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
	.sm-front-legado--premium { padding: 56px 0 64px; }
	.sm-front-legado__inner {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 0 32px;
	}
	.sm-front-legado__text { max-width: 100%; }
	.sm-front-legado__title-main { font-size: clamp(48px, 8vw, 72px); }
	.sm-front-legado__gallery { height: 520px; }
	.sm-front-legado__bg-year { font-size: 200px; }
}

@media (max-width: 760px) {
	.sm-front-legado--premium { padding: 48px 0 56px; }
	.sm-front-legado__inner {
		gap: 32px;
		padding: 0 24px;
	}
	.sm-front-legado__title-script { font-size: 24px; }
	.sm-front-legado__title-main { font-size: 48px; }
	.sm-front-legado__lead { font-size: 18px; }
	.sm-front-legado__copy { font-size: 14px; }
	.sm-front-legado__features {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px 0;
	}
	.sm-front-legado__stats {
		flex-wrap: wrap;
		gap: 24px !important;
	}
	.sm-front-legado__stat {
		flex: 0 0 calc(50% - 12px);
		padding: 0;
	}
	.sm-front-legado__stat-divider { display: none; }
	.sm-front-legado__stat-num { font-size: 28px !important; }
	.sm-front-legado__gallery {
		grid-template-columns: 1fr 1fr !important;
		grid-template-rows: 260px 200px !important;
		height: auto;
		gap: 12px !important;
	}
	.sm-front-legado__img--main {
		grid-column: 1 / span 2 !important;
		grid-row: 1 !important;
	}
	.sm-front-legado__img--top {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}
	.sm-front-legado__img--bottom {
		grid-column: 2 !important;
		grid-row: 2 !important;
	}
	.sm-front-legado__year-badge {
		bottom: 16px;
		left: 16px;
		padding: 14px 18px;
		min-width: 140px;
	}
	.sm-front-legado__year-value { font-size: 32px; }
	.sm-front-legado__bg-year { display: none; }
	.sm-front-legado__bg-ornament { width: 120px; height: 120px; bottom: 20px; right: 20px; }
}
