/* Bodega Santa Catarina — Tarjetas Virtuales 3D (Standalone + Shortcode) */

*,
*::before,
*::after {
	box-sizing: border-box;
}

.bsc-standalone-body {
	margin: 0;
	padding: 0;
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--bsc-bg-color, #f2ece4);
	color: #502b3a;
	-webkit-font-smoothing: antialiased;
}

.bsc-page-shell {
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(circle at 50% 30%, rgba(194, 164, 120, 0.16) 0%, rgba(242, 236, 228, 0) 68%),
		var(--bsc-bg-color, #f2ece4);
}

/* ── Mini Header ── */
.bsc-mini-header {
	width: 100%;
	background-color: rgb(64, 26, 46);
	border-bottom: 1px solid rgba(194, 164, 120, 0.28);
}

.bsc-mini-header-inner {
	max-width: 960px;
	height: 68px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bsc-brand-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #f2ece4;
}

.bsc-brand-link img {
	height: 46px;
	width: auto;
	display: block;
	object-fit: contain;
}

.bsc-brand-text {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #f2ece4;
}

.bsc-web-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(194, 164, 120, 0.5);
	background-color: rgba(255, 255, 255, 0.08);
	color: #f2ece4;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bsc-web-link:hover {
	background-color: #c2a478;
	border-color: #c2a478;
	color: #401a2e;
}

/* ── Main Stage ── */
.bsc-main-stage {
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 36px 20px 44px;
}

.bsc-card-widget {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #502b3a;
}

.bsc-eyebrow {
	display: block;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #c2a478;
	margin-bottom: 6px;
}

.bsc-person-name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.85rem, 3.8vw, 2.55rem);
	font-weight: 600;
	line-height: 1.12;
	color: #502b3a;
	margin: 0 0 8px 0;
}

.bsc-person-role {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #502b3a;
	margin: 0 0 1.75rem 0;
}

@media (min-width: 768px) {
	.bsc-eyebrow {
		font-size: 0.78rem;
		letter-spacing: 0.24em;
		margin-bottom: 8px;
	}

	.bsc-person-name {
		font-size: clamp(2.45rem, 4.2vw, 3.15rem);
		margin-bottom: 10px;
	}

	.bsc-person-role {
		font-size: 0.96rem;
		font-weight: 800;
		letter-spacing: 0.2em;
		margin-bottom: 2rem;
	}
}

/* ── Tarjeta 3D ── */
.bsc-card-stage {
	width: 100%;
	max-width: 520px;
	perspective: 1400px;
}

.bsc-card-flip {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding: 0;
	padding-top: var(--bsc-card-ratio, 65.9615%);
	border: 0;
	background: transparent;
	cursor: pointer;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
	transform: rotateY(0deg);
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.bsc-card-flip.is-flipped {
	transform: rotateY(180deg);
}

.bsc-card-flip:focus-visible .bsc-card-face {
	box-shadow:
		0 0 0 3px rgba(194, 164, 120, 0.65),
		0 22px 46px rgba(45, 20, 32, 0.28);
}

.bsc-card-face {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 18px;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow:
		0 20px 44px rgba(45, 20, 32, 0.24),
		0 4px 14px rgba(45, 20, 32, 0.14),
		inset 0 0 0 1px rgba(194, 164, 120, 0.26);
	transition: box-shadow 0.28s ease;
}

.bsc-card-face--front {
	background-color: #502b3a;
	transform: rotateY(0deg) translateZ(1px);
}

.bsc-card-face--back {
	background-color: #ede6dd;
	transform: rotateY(180deg) translateZ(1px);
}

.bsc-card-stage:hover .bsc-card-face {
	box-shadow:
		0 26px 56px rgba(45, 20, 32, 0.3),
		0 6px 18px rgba(45, 20, 32, 0.16),
		inset 0 0 0 1px rgba(194, 164, 120, 0.42);
}

/* Reflejo sutil tipo tarjeta bancaria */
.bsc-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		125deg,
		rgba(255, 255, 255, 0.14) 0%,
		rgba(255, 255, 255, 0.03) 34%,
		transparent 56%,
		rgba(0, 0, 0, 0.06) 100%
	);
	pointer-events: none;
}

.bsc-card-face img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.bsc-flip-hint {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 500;
	color: rgba(80, 43, 58, 0.72);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.bsc-flip-hint:hover {
	color: #502b3a;
	background-color: rgba(80, 43, 58, 0.05);
}

/* ── Dock minimalista de iconos + CTA Guardar Contacto ── */
.bsc-actions-dock {
	width: 100%;
	max-width: 520px;
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bsc-dock-grid {
	display: grid;
	grid-template-columns: repeat(var(--bsc-dock-cols, 4), minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.bsc-dock-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 4px 2px;
	background: transparent;
	border: 0;
	text-decoration: none;
	color: inherit;
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bsc-dock-icon-box {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(194, 164, 120, 0.42);
	color: #502b3a;
	box-shadow: 0 6px 16px rgba(80, 43, 58, 0.07);
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.bsc-dock-icon-box.is-active,
.bsc-dock-item:hover .bsc-dock-icon-box,
.bsc-dock-item:focus-visible .bsc-dock-icon-box {
	background: #502b3a;
	border-color: #502b3a;
	color: #c2a478;
}

.bsc-dock-item:hover .bsc-dock-icon-box,
.bsc-dock-item:focus-visible .bsc-dock-icon-box {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(80, 43, 58, 0.16);
}

.bsc-dock-label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #502b3a;
	line-height: 1.1;
}

.bsc-dock-sublabel {
	font-size: 0.64rem;
	font-weight: 500;
	color: rgba(80, 43, 58, 0.62);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.bsc-save-contact-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: 14px;
	background-color: #502b3a;
	border: 1px solid rgba(194, 164, 120, 0.55);
	color: #f2ece4;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(64, 26, 46, 0.22);
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.bsc-save-contact-btn svg {
	color: #c2a478;
}

.bsc-save-contact-btn:hover {
	background-color: #3f202d;
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(64, 26, 46, 0.28);
}

/* ── Mini Footer ── */
.bsc-mini-footer {
	width: 100%;
	background-color: rgb(64, 26, 46);
	color: rgba(242, 236, 228, 0.85);
	padding: 14px 20px;
	text-align: center;
	font-size: 0.7rem;
	line-height: 1.5;
}

.bsc-mini-footer a {
	color: #c2a478;
	text-decoration: none;
	font-weight: 600;
}

.bsc-mini-footer a:hover {
	text-decoration: underline;
}

/* ── Directorio (/tarjetas/) ── */
.bsc-directory-header {
	text-align: center;
	margin-bottom: 24px;
}

.bsc-directory-grid {
	width: 100%;
	max-width: 780px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.bsc-directory-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.85rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(194, 164, 120, 0.36);
	box-shadow: 0 10px 26px rgba(80, 43, 58, 0.08);
	text-decoration: none;
	color: #502b3a;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bsc-directory-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(80, 43, 58, 0.14);
}

.bsc-directory-card img {
	width: 100%;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.bsc-directory-card-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: left;
}

.bsc-directory-card-info span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c2a478;
}

.bsc-directory-card-info strong {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: #502b3a;
	line-height: 1.15;
}

.bsc-card-empty {
	font-size: 0.9rem;
	color: rgba(80, 43, 58, 0.75);
	text-align: center;
}

@media (max-width: 520px) {
	.bsc-main-stage {
		padding: 24px 16px 36px;
	}

	.bsc-card-face {
		border-radius: 14px;
	}
}

@media (max-width: 420px) {
	.bsc-dock-icon-box {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}
}
