/* ============================================================
   single-propiedades.css — Página single CPT propiedades
   ============================================================ */

/* ============================================================
   HERO — fan slider (3 imágenes, igual al Widget Hero Fan)
   ============================================================ */

.se-single-prop {
	/* el header queda fijo en estado "scrolled" en esta plantilla;
	   se empuja el contenido para que empiece justo debajo */
	padding-top: 100px;
}

@media (max-width: 768px) {
	.se-single-prop {
		padding-top: 52px;
	}
}

.se-prop-hero {
	position: relative;
	width: 100%;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
}

.se-prop-hero__stage {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 20%;
	z-index: 1;
	pointer-events: none;
}

/* Solo/duo heredan bottom: 20% del stage principal — mismo tamaño que el slider */

.se-prop-hero__card {
	position: absolute;
	inset: 0;
	overflow: hidden;
	transform-origin: 50% 100%;
	transition:
		transform 1.4s cubic-bezier(0.65, 0.05, 0.35, 1),
		opacity   1.4s cubic-bezier(0.65, 0.05, 0.35, 1),
		filter    1.4s cubic-bezier(0.65, 0.05, 0.35, 1);
	will-change: transform, opacity;
	opacity: 0;
}

.se-prop-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Overlay suave sobre la carta superior */
.se-prop-hero__card--pos-top::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0)    30%,
		rgba(0, 0, 0, 0)    55%,
		rgba(0, 0, 0, 0.45) 100%
	);
	pointer-events: none;
}

/* Posiciones del abanico */
.se-prop-hero__card--pos-top {
	transform: translateY(0) rotate(0deg) scale(1);
	opacity: 1;
	filter: brightness(0.88);
	z-index: 10;
}
.se-prop-hero__card--pos-2 {
	transform: translateY(24px) rotate(-1deg) scale(0.968);
	opacity: 0.88;
	filter: brightness(0.72);
	z-index: 9;
}
.se-prop-hero__card--pos-3 {
	transform: translateY(50px) rotate(-2deg) scale(0.936);
	opacity: 0.76;
	filter: brightness(0.56);
	z-index: 8;
}
.se-prop-hero__card--leaving {
	transform: translateY(-50px) rotate(6deg) scale(1.01);
	opacity: 0;
	z-index: 15;
}
.se-prop-hero__card--entering {
	transform: translateY(90px) rotate(-3.5deg) scale(0.88);
	opacity: 0;
	z-index: 1;
}
.se-prop-hero__card--hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(90px) rotate(-3.5deg) scale(0.88);
	z-index: 1;
}

/* Sale-status ribbon */
.se-prop-hero__ribbon {
	position: absolute;
	top: 42px;
	left: -110px;
	width: 420px;
	padding: 14px 0;
	text-align: center;
	transform: rotate(-45deg);
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	z-index: 25;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.se-prop-hero__ribbon--reserved {
	background: var(--color-sand-400);
}

.se-prop-hero__ribbon--sold {
	background: var(--color-secondary);
}

@media (max-width: 640px) {
	.se-prop-hero__ribbon {
		top: 24px;
		left: -90px;
		width: 320px;
		padding: 10px 0;
		font-size: 14px;
		letter-spacing: 0.12em;
	}
}

/* Logo centrado — texto */
.se-prop-hero__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
	pointer-events: none;
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Indicador de scroll — dentro del área de imagen (80%) */
.se-prop-hero__scroll {
	position: absolute;
	bottom: calc(20% + 20px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	color: rgba(255, 255, 255, 0.75);
	pointer-events: none;
	animation: se-prop-bounce 2s ease-in-out infinite;
}

.se-prop-hero__scroll svg {
	width: 28px;
	height: 28px;
	display: block;
}

@keyframes se-prop-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%       { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   HERO — solo (1 imagen) y duo (2 lado a lado)
   ============================================================ */

.se-prop-hero--solo .se-prop-hero__stage,
.se-prop-hero--duo .se-prop-hero__stage {
	display: flex;
	gap: 3px;
	pointer-events: auto;
}

.se-prop-hero--solo .se-prop-hero__card,
.se-prop-hero--duo .se-prop-hero__card {
	position: relative;
	inset: unset;
	flex: 1 1 50%;
	opacity: 1 !important;
	transform: none !important;
	filter: brightness(0.85) !important;
	transition: none;
	border-radius: 0;
}

.se-prop-hero--solo .se-prop-hero__card {
	flex: 1 1 100%;
}

/* Overlay en ambas cartas para solo/duo */
.se-prop-hero--solo .se-prop-hero__card::after,
.se-prop-hero--duo .se-prop-hero__card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0)   30%,
		rgba(0, 0, 0, 0)   55%,
		rgba(0, 0, 0, 0.4) 100%
	);
	pointer-events: none;
}

/* Sin nav ni scroll en solo/duo */
.se-prop-hero--solo .se-prop-hero__nav,
.se-prop-hero--duo .se-prop-hero__nav,
.se-prop-hero--solo .se-prop-hero__scroll,
.se-prop-hero--duo .se-prop-hero__scroll {
	display: none;
}

/* ============================================================
   Botones de navegación (fan)
   ============================================================ */

/* Botones de navegación — dentro del área de imagen (80%) */
.se-prop-hero__nav {
	position: absolute;
	bottom: calc(20% + 20px);
	right: 36px;
	z-index: 20;
	display: flex;
	gap: 10px;
}

.se-prop-hero__nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background var(--transition-fast), border-color var(--transition-fast);
}

.se-prop-hero__nav-btn:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

.se-prop-hero__nav-btn svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: #fff;
}


/* ============================================================
   HERO — tour virtual / video como portada (en vez del slider)
   ============================================================ */

.se-prop-hero--media {
	height: 70svh;
	max-height: 70vh;
	background: #000;
}

.se-prop-hero__media-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.se-prop-hero__media-link {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--transition-fast), border-color var(--transition-fast);
}

.se-prop-hero__media-link svg {
	width: 18px;
	height: 18px;
}

.se-prop-hero__media-link:hover {
	background: rgba(0, 0, 0, 0.55);
	border-color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

@media (max-width: 768px) {
	.se-prop-hero__media-link {
		width: max-content;
		max-width: calc(100% - 32px);
		white-space: normal;
		text-align: center;
	}
}


/* ============================================================
   INFO DE LA PROPIEDAD
   ============================================================ */

.se-prop-info {
	padding: 0 0 64px;
	text-align: center;
	background: var(--color-bg);
}

/* Cuando la portada es el tour/video (fondo oscuro), separar un poco del subtitulo */
.se-prop-hero--media + .se-prop-info {
	padding-top: 48px;
}

.se-prop-info__zone {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin: 0 0 20px;
}

.se-prop-info__title {
	font-family: var(--font-primary);
	font-size: clamp(22px, 4.5vw, 60px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--color-text);
	margin: 0 auto 28px;
	max-width: 1400px;
}

.se-prop-info__stats {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.se-prop-info__stat + .se-prop-info__stat::before {
	content: '|';
	margin-inline: 14px;
	color: var(--color-border);
	font-weight: 300;
}

.se-prop-info__price {
	font-family: var(--font-primary);
	font-size: clamp(26px, 3.5vw, 44px);
	font-weight: 500;
	letter-spacing: -0.025em;
	color: var(--color-text);
	margin: 0;
}

.se-prop-info__reserve {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--color-text);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.se-prop-info__reserve:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   SHARE
   ============================================================ */

.se-prop-share {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

.se-prop-share__label {
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.se-prop-share__buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.se-prop-share__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.se-prop-share__btn:hover {
	background: var(--color-text);
	color: #fff;
	transform: translateY(-2px);
}

.se-prop-share__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.se-prop-share__btn--whatsapp:hover {
	background: #25D366;
	color: #fff;
}

.se-prop-share__btn--facebook:hover {
	background: #1877F2;
	color: #fff;
}

.se-prop-share__btn--x:hover {
	background: #000;
	color: #fff;
}

.se-prop-share__tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--color-text);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.se-prop-share__btn--copy.is-copied .se-prop-share__tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}


/* ============================================================
   DESCRIPCIÓN
   ============================================================ */

.se-prop-description {
	padding: 0 0 80px;
	background: var(--color-bg);
}

.se-prop-description__text {
	font-family: var(--font-primary);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	color: #444;
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}

.se-prop-description__text p {
	margin: 0 0 1em;
}

.se-prop-description__text p:last-child {
	margin-bottom: 0;
}


/* ============================================================
   ETIQUETA DE SECCIÓN (compartida)
   ============================================================ */

.se-prop-section-label {
	font-family: var(--font-heading);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-primary);
	text-align: center;
	margin: 0 0 56px;
}


/* ============================================================
   CARACTERÍSTICAS
   ============================================================ */

.se-prop-features {
	padding: 72px 0;
	background: var(--color-sand-50);
}

.se-prop-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 28px 56px;
	max-width: 860px;
	margin: 0 auto;
}

.se-prop-feature {
	display: flex;
	align-items: center;
	gap: 20px;
}

.se-prop-feature__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.se-prop-feature__icon svg {
	width: 44px;
	height: 44px;
	display: block;
}

.se-prop-feature__text {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	line-height: 1.3;
}


/* ============================================================
   EXTRAS
   ============================================================ */

.se-prop-extras {
	padding: 72px 0 120px;
	background: var(--color-bg);
}

.se-prop-extras__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px 48px;
	max-width: 860px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

.se-prop-extras__item {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 400;
	color: var(--color-text);
	line-height: 1.4;
}

.se-prop-extras__icon {
	flex-shrink: 0;
	color: var(--color-primary);
}

.se-prop-extras__icon svg {
	width: 36px;
	height: 36px;
	display: block;
}


/* ============================================================
   GALERÍA
   ============================================================ */

.se-prop-gallery {
	background: var(--color-bg);
}

.se-prop-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}

.se-prop-gallery__item {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: pointer;
	position: relative;
	display: block;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.se-prop-gallery__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.se-prop-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.se-prop-gallery__item:hover img {
	transform: scale(1.04);
}

.se-prop-gallery__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background var(--transition-normal);
	pointer-events: none;
}

.se-prop-gallery__item:hover::after {
	background: rgba(0, 0, 0, 0.08);
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.se-prop-lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	background: rgba(0, 0, 0, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.se-prop-lightbox:not([hidden]) {
	pointer-events: auto;
}

.se-prop-lightbox.is-open {
	opacity: 1;
}

.se-prop-lightbox__img-wrap {
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.se-prop-lightbox__img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
	border-radius: 2px;
}

.se-prop-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background var(--transition-fast), color var(--transition-fast);
}

.se-prop-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	opacity: 1;
}

.se-prop-lightbox__close svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}

.se-prop-lightbox__prev,
.se-prop-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	cursor: pointer;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background var(--transition-fast);
}

.se-prop-lightbox__prev { left: 20px; }
.se-prop-lightbox__next { right: 20px; }

.se-prop-lightbox__prev:hover,
.se-prop-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
	opacity: 1;
}

.se-prop-lightbox__prev svg,
.se-prop-lightbox__next svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}


/* ============================================================
   MEDIA (Video — solo cuando el tour ya ocupa la portada)
   ============================================================ */

.se-prop-media {
	margin-top: 48px;
	padding: 72px 0;
	background: var(--color-sand-50);
}

.se-prop-media__video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 860px;
	margin: 0 auto;
	border-radius: 4px;
}

.se-prop-media__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* ============================================================
   CONTACTO / CTA
   ============================================================ */

.se-prop-contact {
	padding: 88px 0;
	text-align: center;
	background: var(--color-bg);
}

.se-prop-contact__title {
	font-family: var(--font-primary);
	font-size: clamp(20px, 3vw, 34px);
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--color-text);
	margin: 0 0 12px;
}

.se-prop-contact__subtitle {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 400;
	color: #777;
	margin: 0 0 44px;
}

.se-prop-contact__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}

.se-prop-contact__template {
	margin-top: 48px;
}

.se-prop-contact__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 40px;
	border-radius: 999px;
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.se-prop-contact__btn:hover {
	transform: translateY(-2px);
	opacity: 1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.se-prop-contact__btn--primary {
	background: var(--color-text);
	color: #fff;
}

.se-prop-contact__btn--whatsapp {
	background: #25D366;
	color: #fff;
}

.se-prop-contact__btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}


/* ============================================================
   VOLVER
   ============================================================ */

.se-prop-back-wrap {
	padding: 16px 0 40px;
	background: var(--color-bg);
}

.se-prop-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-primary);
	text-decoration: none;
	transition: gap var(--transition-fast), opacity var(--transition-fast);
}

.se-prop-back:hover {
	gap: 14px;
	opacity: 0.75;
}

.se-prop-back svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
	.se-prop-features__grid,
	.se-prop-extras__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 32px;
	}
}

@media (max-width: 640px) {
	.se-prop-hero__nav {
		bottom: 20px;
		right: 20px;
	}

	.se-prop-info {
		padding: 0 0 48px;
	}

	.se-prop-info__zone {
		font-size: 16px;
		line-height: 18px;
	}

	/* Features y extras igualados en móvil */
	.se-prop-features__grid,
	.se-prop-extras__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 24px;
	}

	.se-prop-feature,
	.se-prop-extras__item {
		gap: 10px;
	}

	.se-prop-feature__icon {
		width: 24px;
		height: 24px;
	}

	.se-prop-feature__icon svg,
	.se-prop-extras__icon svg {
		width: 24px;
		height: 24px;
	}

	.se-prop-info__stats {
		font-size: 16px;
	}

	.se-prop-feature__text,
	.se-prop-extras__item {
		font-size: 14px;
	}

	.se-prop-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.se-prop-lightbox__prev { left: 8px; }
	.se-prop-lightbox__next { right: 8px; }
}

@media (max-width: 400px) {
	.se-prop-gallery__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-prop-hero__card {
		transition: opacity 0.5s ease !important;
	}
	.se-prop-hero__card--pos-2,
	.se-prop-hero__card--pos-3 {
		display: none;
	}
	.se-prop-hero__scroll {
		animation: none;
	}
	.se-prop-gallery__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
