/**
 * Single Inmuebles CSS — Ficha individual de propiedad.
 *
 * Prefijo: .sc-ficha
 * Tipografias: Cormorant Garamond (titulos, precio) + DM Sans (cuerpo)
 * Paleta: --azul #4a8fcc, --beige #fbf5e9, etc.
 * Replica EXACTA del diseno aprobado en ficha-propiedad.html.
 *
 * @package SoriaInmovillaSync
 */

/* ===================================================================
   VARIABLES
   =================================================================== */
.sc-ficha {
	--azul: #4a8fcc;
	--azul-hover: #3a7fb8;
	--beige: #fbf5e9;
	--beige-dark: #f0e8d5;
	--blanco: #ffffff;
	--gris-texto: #54585e;
	--negro: #333333;
	--borde: #e5e5e5;
	--sombra: 0 2px 16px rgba(0,0,0,0.08);
	--sombra-hover: 0 8px 32px rgba(0,0,0,0.14);
	--radio: 12px;
	--radio-img: 10px;
}

/* ===================================================================
   RESET / AISLAMIENTO DE XSTORE
   =================================================================== */
.sc-ficha,
.sc-ficha *,
.sc-ficha *::before,
.sc-ficha *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.sc-ficha {
	font-family: 'DM Sans', sans-serif;
	background: var(--blanco);
	color: var(--negro);
	line-height: 1.6;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-transform: none;
	letter-spacing: normal;
	word-spacing: normal;
}

.sc-ficha a {
	color: inherit;
	text-decoration: none;
}

.sc-ficha img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===================================================================
   BREADCRUMB
   =================================================================== */
.sc-ficha-breadcrumb {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px 0;
	font-size: 13px;
	color: var(--gris-texto);
}

.sc-ficha-breadcrumb a {
	color: var(--azul);
	text-decoration: none;
}

.sc-ficha-breadcrumb a:hover {
	text-decoration: underline;
}

.sc-ficha-breadcrumb span {
	margin: 0 6px;
}

/* ===================================================================
   WRAPPER
   =================================================================== */
.sc-ficha-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 24px 60px;
}

/* ===================================================================
   GALERIA
   =================================================================== */
.sc-ficha-galeria {
	margin-bottom: 48px;
}

.sc-ficha-galeria__main {
	position: relative;
	border-radius: var(--radio);
	overflow: hidden;
	background: #f0ece4;
	margin-bottom: 12px;
	box-shadow: var(--sombra);
	cursor: pointer;
}

.sc-ficha-galeria__main img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease;
}

.sc-ficha-galeria__main:hover img {
	transform: scale(1.02);
}

.sc-ficha-galeria__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--azul);
	color: white;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	z-index: 2;
}

.sc-ficha-galeria__counter {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: rgba(0,0,0,0.55);
	color: white;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	z-index: 2;
}

.sc-ficha-galeria__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.92);
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0,0,0,0.15);
	transition: all 0.2s;
	z-index: 3;
	color: var(--negro);
}

.sc-ficha-galeria__nav:hover {
	background: white;
	transform: translateY(-50%) scale(1.08);
}

.sc-ficha-galeria__nav--prev { left: 16px; }
.sc-ficha-galeria__nav--next { right: 16px; }

/* Thumbs */
.sc-ficha-galeria__thumbs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.sc-ficha-galeria__thumb {
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s;
	aspect-ratio: 4/3;
}

.sc-ficha-galeria__thumb.active {
	border-color: var(--azul);
	box-shadow: 0 0 0 2px var(--azul);
}

.sc-ficha-galeria__thumb:hover {
	border-color: var(--azul-hover);
	opacity: 0.9;
}

.sc-ficha-galeria__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sc-ficha-galeria__thumb--mas {
	background: var(--beige);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--gris-texto);
	font-weight: 500;
}

.sc-ficha-galeria__thumb--mas span {
	font-size: 20px;
	color: var(--azul);
}

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.sc-ficha-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.95);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 20px;
}

.sc-ficha-lightbox.open {
	display: flex;
}

.sc-ficha-lightbox img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
}

.sc-ficha-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	color: white;
	font-size: 32px;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
	z-index: 10001;
}

.sc-ficha-lightbox__close:hover { opacity: 1; }

.sc-ficha-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.2);
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.sc-ficha-lightbox__nav:hover {
	background: rgba(255,255,255,0.22);
}

.sc-ficha-lightbox__nav--prev { left: 20px; }
.sc-ficha-lightbox__nav--next { right: 20px; }

.sc-ficha-lightbox__counter {
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	margin-top: 16px;
}

/* ===================================================================
   LAYOUT PRINCIPAL
   =================================================================== */
.sc-ficha-body {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	align-items: start;
}

/* ===================================================================
   CABECERA
   =================================================================== */
.sc-ficha-header {
	margin-bottom: 32px;
}

.sc-ficha-tipo-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.sc-ficha-tag-tipo {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--azul);
	background: rgba(74,143,204,0.1);
	padding: 5px 12px;
	border-radius: 20px;
}

.sc-ficha-tag-estado {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
}

.sc-ficha-tag-ref {
	font-size: 11px;
	color: var(--gris-texto);
	margin-left: auto;
}

.sc-ficha-titulo {
	font-family: 'Cormorant Garamond', serif;
	font-size: 36px;
	font-weight: 600;
	color: var(--negro);
	line-height: 1.2;
	margin-bottom: 12px;
}

.sc-ficha-ubicacion {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gris-texto);
	font-size: 15px;
}

.sc-ficha-ubicacion svg {
	color: var(--azul);
	flex-shrink: 0;
}

/* ===================================================================
   INFO RAPIDA
   =================================================================== */
.sc-ficha-info-rapida {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 28px 0;
	padding: 24px;
	background: var(--beige);
	border-radius: var(--radio);
}

.sc-ficha-info-item {
	text-align: center;
}

.sc-ficha-info-valor {
	font-family: 'Cormorant Garamond', serif;
	font-size: 26px;
	font-weight: 600;
	color: var(--negro);
	line-height: 1;
	margin-bottom: 4px;
}

.sc-ficha-info-etiqueta {
	font-size: 11px;
	color: var(--gris-texto);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ===================================================================
   SECCIONES
   =================================================================== */
.sc-ficha-seccion {
	margin-bottom: 40px;
}

.sc-ficha-seccion__titulo {
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--negro);
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--borde);
	display: flex;
	align-items: center;
	gap: 10px;
}

.sc-ficha-seccion__titulo::before {
	content: '';
	display: block;
	width: 3px;
	height: 22px;
	background: var(--azul);
	border-radius: 2px;
	flex-shrink: 0;
}

/* ===================================================================
   DESCRIPCION
   =================================================================== */
.sc-ficha-descripcion {
	font-size: 15px;
	color: var(--gris-texto);
	line-height: 1.8;
}

.sc-ficha-descripcion p {
	margin-bottom: 12px;
}

/* ===================================================================
   CARACTERISTICAS
   =================================================================== */
.sc-ficha-caract-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	overflow: hidden;
}

.sc-ficha-caract-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--borde);
	border-right: 1px solid var(--borde);
	background: var(--blanco);
	transition: background 0.2s ease;
}

.sc-ficha-caract-item:hover {
	background: var(--beige);
}

/* Quitar borde derecho en la segunda columna */
.sc-ficha-caract-item:nth-child(2n) {
	border-right: none;
}

/* Quitar borde inferior en la ultima fila (2 cols) */
.sc-ficha-caract-item:nth-last-child(1),
.sc-ficha-caract-item:nth-last-child(2) {
	border-bottom: none;
}

.sc-ficha-caract-icono {
	width: 40px;
	height: 40px;
	background: rgba(74,143,204,0.08);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	color: var(--azul);
	transition: background 0.2s ease, transform 0.2s ease;
}

.sc-ficha-caract-item:hover .sc-ficha-caract-icono {
	background: rgba(74,143,204,0.14);
	transform: scale(1.05);
}

.sc-ficha-caract-icono svg {
	width: 20px;
	height: 20px;
	stroke: var(--azul);
	stroke-width: 1.8;
}

/* ── Subtitulos de subsecciones ── */
.sc-ficha-subseccion__titulo {
	font-family: 'Cormorant Garamond', serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--negro);
	margin: 32px 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--borde);
	letter-spacing: 0.01em;
}

/* Dentro del accordion, reducir margen del primer subtitulo */
.sc-ficha .sc-ficha-accordion__content .sc-ficha-subseccion__titulo:first-child {
	margin-top: 0;
}

/* ===================================================================
   ACCORDION — Desplegable calidades y equipamiento
   .sc-ficha para ganar especificidad sobre XStore
   =================================================================== */
.sc-ficha .sc-ficha-accordion {
	margin-top: 24px;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	overflow: hidden;
}

.sc-ficha .sc-ficha-accordion__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 18px 24px;
	background: var(--beige);
	border: none;
	cursor: pointer;
	font-family: 'Cormorant Garamond', serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--negro);
	text-align: left;
	transition: background 0.2s ease;
	gap: 12px;
	line-height: 1.3;
}

.sc-ficha .sc-ficha-accordion__toggle:hover {
	background: var(--beige-dark);
}

.sc-ficha .sc-ficha-accordion__count {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: var(--gris-texto);
	background: rgba(74,143,204,0.1);
	padding: 3px 10px;
	border-radius: 12px;
	white-space: nowrap;
}

.sc-ficha .sc-ficha-accordion__toggle svg {
	width: 20px;
	height: 20px;
	margin-left: auto;
	stroke: var(--gris-texto);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.sc-ficha .sc-ficha-accordion.open .sc-ficha-accordion__toggle svg {
	transform: rotate(180deg);
}

.sc-ficha .sc-ficha-accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	padding: 0 24px;
}

.sc-ficha .sc-ficha-accordion.open .sc-ficha-accordion__content {
	padding: 24px;
}

/* ===================================================================
   EQUIPAMIENTO — Grid premium estilo Engel & Volkers / Airbnb
   Selectores con .sc-ficha para ganar especificidad sobre XStore
   =================================================================== */
.sc-ficha .sc-ficha-equip-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	overflow: hidden;
}

.sc-ficha .sc-equip-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: var(--blanco);
	border-right: 1px solid var(--borde);
	border-bottom: 1px solid var(--borde);
	transition: background 0.2s ease;
}

.sc-ficha .sc-equip-item:hover {
	background: var(--beige);
}

/* Quitar borde derecho en la ultima columna */
.sc-ficha .sc-equip-item:nth-child(3n) {
	border-right: none;
}

/* Quitar borde inferior en la ultima fila */
.sc-ficha .sc-ficha-equip-grid .sc-equip-item:nth-last-child(-n+3) {
	border-bottom: none;
}

/* Si la ultima fila tiene menos de 3 items */
.sc-ficha .sc-ficha-equip-grid .sc-equip-item:last-child {
	border-bottom: none;
}

.sc-ficha .sc-equip-icon {
	width: 40px;
	height: 40px;
	background: rgba(74,143,204,0.08);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sc-ficha .sc-equip-item:hover .sc-equip-icon {
	background: rgba(74,143,204,0.14);
	transform: scale(1.05);
}

.sc-ficha .sc-equip-icon svg {
	width: 20px;
	height: 20px;
	stroke: var(--azul);
	stroke-width: 1.8;
}

.sc-ficha .sc-equip-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--negro);
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.sc-ficha-caract-info {
	flex: 1;
	min-width: 0;
}

.sc-ficha-caract-label {
	font-size: 11px;
	color: var(--gris-texto);
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.sc-ficha-caract-valor {
	font-size: 15px;
	font-weight: 500;
	color: var(--negro);
	margin-top: 1px;
}

/* ===================================================================
   CEE
   =================================================================== */
.sc-ficha-cee-row {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}

.sc-ficha-cee-item {
	flex: 1;
	background: var(--beige);
	border-radius: var(--radio);
	padding: 18px 20px;
}

.sc-ficha-cee-label {
	font-size: 11px;
	color: var(--gris-texto);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.sc-ficha-cee-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	color: white;
}

.sc-ficha-cee-badge small {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.9;
}

/* ===================================================================
   EMBED (VIDEO + TOUR)
   =================================================================== */
.sc-ficha-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radio);
	box-shadow: var(--sombra);
}

.sc-ficha-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.sc-ficha-embed--tour {
	padding-bottom: 60%;
}

/* ===================================================================
   TOUR VIRTUAL
   =================================================================== */
.sc-ficha-tour-banner {
	background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
	border-radius: var(--radio);
	padding: 28px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}

.sc-ficha-tour-info h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 600;
	color: white;
	margin-bottom: 6px;
}

.sc-ficha-tour-info p {
	font-size: 13px;
	color: rgba(255,255,255,0.7);
}

.sc-ficha-tour-btn {
	background: white;
	color: #2d6a9f;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	font-family: 'DM Sans', sans-serif;
}

.sc-ficha-tour-btn:hover {
	background: var(--beige);
	transform: scale(1.03);
}

.sc-ficha-tour-embed {
	display: none;
	margin-bottom: 40px;
}

.sc-ficha-tour-embed.visible {
	display: block;
}

.sc-ficha-tour-close {
	margin-left: auto;
	background: none;
	border: 1px solid var(--borde);
	padding: 4px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	color: var(--gris-texto);
	font-family: 'DM Sans', sans-serif;
}

/* ===================================================================
   MAPA
   =================================================================== */
.sc-ficha-mapa {
	border-radius: var(--radio);
	overflow: hidden;
	box-shadow: var(--sombra);
	height: 380px;
	background: var(--beige);
	border: 1px solid var(--borde);
}

.sc-ficha-mapa__iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.sc-ficha-mapa__nota {
	font-size: 12px;
	color: var(--gris-texto);
	margin-top: 8px;
}

/* ===================================================================
   SIDEBAR (COLUMNA DERECHA)
   =================================================================== */
.sc-ficha-sidebar {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ===================================================================
   CARD PRECIO
   =================================================================== */
.sc-ficha-precio-card {
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 28px;
	box-shadow: var(--sombra);
}

.sc-ficha-precio-label {
	font-size: 11px;
	color: var(--gris-texto);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 6px;
}

.sc-ficha-precio-valor {
	font-family: 'Cormorant Garamond', serif;
	font-size: 42px;
	font-weight: 600;
	color: var(--azul);
	line-height: 1;
	margin-bottom: 4px;
}

.sc-ficha-precio-anterior {
	font-size: 16px;
	color: var(--gris-texto);
	text-decoration: line-through;
	margin-bottom: 16px;
}

.sc-ficha-precio-m2 {
	font-size: 13px;
	color: var(--gris-texto);
	padding-top: 12px;
	border-top: 1px solid var(--borde);
	margin-top: 12px;
}

/* ===================================================================
   BOTONES
   =================================================================== */
.sc-ficha-btn-primary {
	display: block;
	width: 100%;
	background: var(--azul);
	color: white;
	border: none;
	padding: 15px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
	margin-top: 16px;
	font-family: 'DM Sans', sans-serif;
}

.sc-ficha-btn-primary:hover {
	background: var(--azul-hover);
	transform: translateY(-1px);
	color: white;
}

.sc-ficha-btn-secondary {
	display: block;
	width: 100%;
	background: transparent;
	color: var(--azul);
	border: 2px solid var(--azul);
	padding: 13px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s;
	margin-top: 10px;
	font-family: 'DM Sans', sans-serif;
}

.sc-ficha-btn-secondary:hover {
	background: var(--azul);
	color: white;
}

/* ===================================================================
   FORMULARIO
   =================================================================== */
.sc-ficha-form-card {
	background: var(--beige);
	border: 1px solid var(--beige-dark);
	border-radius: var(--radio);
	padding: 28px;
}

.sc-ficha-form-titulo {
	font-family: 'Cormorant Garamond', serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--negro);
	margin-bottom: 6px;
}

.sc-ficha-form-subtitulo {
	font-size: 13px;
	color: var(--gris-texto);
	margin-bottom: 20px;
}

.sc-ficha-form-group {
	margin-bottom: 14px;
}

.sc-ficha-form-group label {
	display: block;
	font-size: 12px;
	color: var(--gris-texto);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sc-ficha-form-group input,
.sc-ficha-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--borde);
	border-radius: 8px;
	font-size: 14px;
	font-family: 'DM Sans', sans-serif;
	background: white;
	color: var(--negro);
	transition: border-color 0.2s;
	resize: none;
}

.sc-ficha-form-group input:focus,
.sc-ficha-form-group textarea:focus {
	outline: none;
	border-color: var(--azul);
	box-shadow: 0 0 0 3px rgba(74,143,204,0.12);
}

.sc-ficha-form-privacidad {
	font-size: 11px;
	color: var(--gris-texto);
	margin-top: 12px;
	line-height: 1.5;
}

.sc-ficha-form-privacidad a {
	color: var(--azul);
}

/* ===================================================================
   AGENTE
   =================================================================== */
.sc-ficha-agente-card {
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.sc-ficha-agente-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--beige-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	flex-shrink: 0;
}

.sc-ficha-agente-nombre {
	font-weight: 500;
	font-size: 15px;
	color: var(--negro);
}

.sc-ficha-agente-tel {
	font-size: 13px;
	color: var(--azul);
	text-decoration: none;
	margin-top: 2px;
	display: block;
}

.sc-ficha-agente-tel:hover {
	text-decoration: underline;
}

/* ===================================================================
   PROPIEDADES RELACIONADAS
   =================================================================== */
.sc-ficha-relacionadas {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--borde);
}

.sc-ficha-relacionadas__titulo {
	font-family: 'Cormorant Garamond', serif;
	font-size: 28px;
	font-weight: 600;
	color: var(--negro);
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sc-ficha-relacionadas__titulo::before {
	content: '';
	display: block;
	width: 3px;
	height: 28px;
	background: var(--azul);
	border-radius: 2px;
}

.sc-ficha-relacionadas__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.sc-ficha-rel-card {
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	overflow: hidden;
	background: white;
	transition: box-shadow 0.2s, transform 0.2s;
	text-decoration: none;
	color: inherit;
	display: block;
}

.sc-ficha-rel-card:hover {
	box-shadow: var(--sombra-hover);
	transform: translateY(-3px);
}

.sc-ficha-rel-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.sc-ficha-rel-img--placeholder {
	background: var(--beige);
}

.sc-ficha-rel-body {
	padding: 16px;
}

.sc-ficha-rel-tipo {
	font-size: 11px;
	color: var(--azul);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 6px;
}

.sc-ficha-rel-titulo {
	font-size: 15px;
	font-weight: 500;
	color: var(--negro);
	margin-bottom: 8px;
	line-height: 1.3;
}

.sc-ficha-rel-precio {
	font-family: 'Cormorant Garamond', serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--azul);
}

/* ===================================================================
   RESPONSIVE — Tablet (max-width: 900px)
   =================================================================== */
@media (max-width: 900px) {
	.sc-ficha-body {
		grid-template-columns: 1fr;
	}

	.sc-ficha-right {
		order: -1;
	}

	.sc-ficha-sidebar {
		position: static;
	}

	.sc-ficha-precio-card {
		display: flex;
		gap: 20px;
		align-items: center;
		flex-wrap: wrap;
	}

	.sc-ficha-precio-card .sc-ficha-btn-primary,
	.sc-ficha-precio-card .sc-ficha-btn-secondary {
		flex: 1;
		min-width: 140px;
	}

	.sc-ficha-galeria__main img {
		height: auto;
	}

	.sc-ficha-galeria__thumbs {
		grid-template-columns: repeat(4, 1fr);
	}

	.sc-ficha-info-rapida {
		grid-template-columns: repeat(2, 1fr);
	}

	.sc-ficha-relacionadas__grid {
		grid-template-columns: 1fr 1fr;
	}

	.sc-ficha-caract-grid {
		grid-template-columns: 1fr;
	}

	/* Caract grid 1 col: quitar borde derecho */
	.sc-ficha-caract-item {
		border-right: none;
	}

	.sc-ficha-caract-item:last-child {
		border-bottom: none;
	}

	/* Equipamiento: 2 columnas en tablet */
	.sc-ficha .sc-ficha-equip-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sc-ficha .sc-equip-item:nth-child(3n) {
		border-right: 1px solid var(--borde);
	}

	.sc-ficha .sc-equip-item:nth-child(2n) {
		border-right: none;
	}

	.sc-ficha .sc-ficha-equip-grid .sc-equip-item:nth-last-child(-n+3) {
		border-bottom: 1px solid var(--borde);
	}

	.sc-ficha .sc-ficha-equip-grid .sc-equip-item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.sc-ficha .sc-ficha-equip-grid .sc-equip-item:last-child {
		border-bottom: none;
	}

	.sc-ficha-tour-banner {
		flex-direction: column;
		text-align: center;
	}
}

/* ===================================================================
   RESPONSIVE — Movil (max-width: 600px)
   =================================================================== */
@media (max-width: 600px) {
	.sc-ficha-wrapper {
		padding: 16px 16px 40px;
	}

	.sc-ficha-breadcrumb {
		padding: 12px 16px 0;
		font-size: 12px;
	}

	.sc-ficha-titulo {
		font-size: 26px;
	}

	.sc-ficha-galeria__main img {
		height: auto;
	}

	.sc-ficha-galeria__thumbs {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}

	.sc-ficha-info-rapida {
		gap: 8px;
		padding: 16px;
	}

	.sc-ficha-info-valor {
		font-size: 20px;
	}

	.sc-ficha-relacionadas__grid {
		grid-template-columns: 1fr;
	}

	.sc-ficha-precio-valor {
		font-size: 32px;
	}

	.sc-ficha-cee-row {
		flex-direction: column;
	}

	.sc-ficha-precio-card {
		display: block;
	}

	.sc-ficha-btn-primary,
	.sc-ficha-btn-secondary {
		width: 100%;
	}

	.sc-ficha-tipo-row {
		gap: 8px;
	}

	.sc-ficha-tag-ref {
		margin-left: 0;
		width: 100%;
	}

	.sc-ficha-mapa {
		height: 260px;
	}

	/* Equipamiento: 2 columnas en movil con items compactos */
	.sc-ficha .sc-ficha-equip-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sc-ficha .sc-equip-item {
		padding: 14px 14px;
		gap: 10px;
	}

	.sc-ficha .sc-equip-icon {
		width: 36px;
		height: 36px;
		border-radius: 8px;
	}

	.sc-ficha .sc-equip-icon svg {
		width: 18px;
		height: 18px;
	}

	.sc-ficha .sc-equip-label {
		font-size: 13px;
	}

	/* Subsecciones: menos margen en movil */
	.sc-ficha-subseccion__titulo {
		margin: 28px 0 14px;
		font-size: 17px;
	}
}

/* ===================================================================
   PRINT
   =================================================================== */
@media print {
	.sc-ficha-galeria__nav,
	.sc-ficha-galeria__thumbs,
	.sc-ficha-lightbox,
	.sc-ficha-form-card,
	.sc-ficha-btn-primary,
	.sc-ficha-btn-secondary,
	.sc-ficha-tour-banner,
	.sc-ficha-tour-embed,
	.sc-ficha-mapa,
	.sc-ficha-relacionadas,
	.sc-ficha-agente-card {
		display: none !important;
	}

	.sc-ficha-body {
		grid-template-columns: 1fr;
	}

	.sc-ficha-sidebar {
		position: static;
	}

	.sc-ficha-galeria__main img {
		height: auto;
		max-height: 400px;
	}
}

/* ===================================================================
   PROTECCIÓN DE IMÁGENES — Copyright Soria Casas
   Dificulta clic derecho, arrastre y copia de imágenes.
   =================================================================== */

/* Desactivar selección y arrastre nativo en imágenes */
.sc-ficha-galeria__main img,
.sc-ficha-galeria__thumb img,
.sc-ficha-lightbox img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
	pointer-events: none;
}

/* El contenedor principal de galería mantiene pointer-events para la navegación */
.sc-ficha-galeria__main {
	position: relative;
}

/* Capa protectora transparente sobre la imagen principal */
.sc-ficha-galeria__main::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Los botones de navegación y el contador deben estar encima de la capa protectora */
.sc-ficha-galeria__nav,
.sc-ficha-galeria__counter,
.sc-ficha-galeria__badge {
	z-index: 2;
	pointer-events: auto;
}

/* Lightbox: capa protectora sobre la imagen */
.sc-ficha-lightbox img {
	pointer-events: none;
}

/* Botones del lightbox accesibles */
.sc-ficha-lightbox__close,
.sc-ficha-lightbox__nav,
.sc-ficha-lightbox__counter {
	pointer-events: auto;
}
