/* Savia Dental Engine v4.0 — Frameless Photorealistic 8K 3D Porcelain Dental Arch & Optical Studio Hero */

/* =========================================================================
   FLOATING TOP PORCELAIN NAVIGATION & QUICK-ACTION BAR (ALL 5 PAGES VISIBLE)
   ========================================================================= */
.savia-floating-hud {
	position: fixed;
	top: 16px;
	left: 24px;
	right: 24px;
	z-index: 996;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	pointer-events: none;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

.savia-hud-brand,
.savia-hud-nav,
.savia-hud-actions {
	pointer-events: auto;
}

.savia-hud-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.58rem;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(15, 29, 43, 0.08);
	box-shadow: 0 12px 32px rgba(15, 29, 43, 0.06);
	padding: 0.5rem 1.05rem 0.5rem 0.65rem;
	border-radius: 22px 22px 8px 22px;
	text-decoration: none !important;
	color: #0F1D2B !important;
}

.savia-hud-tooth-mark {
	width: 32px;
	height: 32px;
	border-radius: 12px 12px 4px 12px;
	background: linear-gradient(135deg, #2563EB, #0D9488);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.savia-hud-brand strong {
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.savia-hud-brand small {
	font-size: 0.74rem;
	color: #64748B;
	padding-left: 0.55rem;
	border-left: 1px solid #CBD5E1;
}

.savia-hud-nav {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(15, 29, 43, 0.08);
	box-shadow: 0 12px 32px rgba(15, 29, 43, 0.06);
	padding: 0.34rem;
	border-radius: 22px;
}

.savia-hud-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.44rem 0.95rem;
	border-radius: 16px;
	font-size: 0.84rem;
	font-weight: 500;
	color: #334155 !important;
	text-decoration: none !important;
	transition: all 0.18s ease;
	white-space: nowrap;
}

.savia-hud-nav__link:hover {
	color: #2563EB !important;
	background: rgba(37, 99, 235, 0.06);
}

.savia-hud-nav__link.is-current {
	background: #0F1D2B;
	color: #FFFFFF !important;
}

.savia-hud-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(15, 29, 43, 0.08);
	box-shadow: 0 12px 32px rgba(15, 29, 43, 0.06);
	padding: 0.34rem;
	border-radius: 22px 22px 22px 8px;
}

.savia-hud-urgent {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	padding: 0.44rem 0.85rem;
	border-radius: 16px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #0F1D2B !important;
	background: #F1F5F9;
	text-decoration: none !important;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.savia-hud-urgent:hover {
	background: #E2E8F0;
}

.savia-hud-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0D9488;
	box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.savia-hud-book {
	display: inline-flex;
	align-items: center;
	padding: 0.46rem 1.08rem;
	border-radius: 16px 16px 16px 4px;
	background: #2563EB;
	color: #FFFFFF !important;
	font-size: 0.83rem;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
}

.savia-hud-book:hover {
	background: #1D4ED8;
	transform: translateY(-1px);
}

@media (max-width: 1080px) {
	.savia-hud-brand small,
	.savia-hud-urgent {
		display: none;
	}
}

@media (max-width: 820px) {
	.savia-floating-hud {
		left: 12px;
		right: 12px;
		top: 10px;
	}
	.savia-hud-nav {
		position: fixed;
		bottom: 12px;
		left: 12px;
		right: 76px;
		justify-content: space-around;
		padding: 0.35rem;
		background: rgba(15, 29, 43, 0.94);
		border-color: rgba(255, 255, 255, 0.12);
	}
	.savia-hud-nav__link {
		color: #CBD5E1 !important;
		font-size: 0.74rem;
		padding: 0.42rem 0.55rem;
	}
	.savia-hud-nav__link.is-current {
		background: #2563EB;
		color: #FFFFFF !important;
	}
}

/* =========================================================================
   FRAMELESS 3-COLUMN PHOTOREALISTIC 3D STUDIO HERO & SECTION LAYOUTS
   ========================================================================= */
.savia-odontograma {
	font-family: 'Outfit', sans-serif;
	color: #0F1D2B;
	width: 100%;
}

/* 3-Column Hero Grid: Editorial Left | Giant Frameless 3D Porcelain Arch Center | Glass Lens Right */
.savia-odontograma--hero .savia-odontograma__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.18fr) minmax(0, 0.94fr);
	gap: clamp(1rem, 2.2vw, 2rem);
	align-items: center;
}

/* 2-Column Section Grid (on /tratamientos-precios/) */
.savia-odontograma--section .savia-odontograma__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
}

@media (max-width: 1060px) {
	.savia-odontograma--hero .savia-odontograma__grid,
	.savia-odontograma--section .savia-odontograma__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Left Column: Clean Unboxed Architectural Editorial */
.savia-hero-editorial {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.savia-hero-eyebrow {
	font-family: 'DM Mono', monospace !important;
	font-size: 0.74rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0D9488 !important;
	margin: 0 0 0.7rem !important;
}

.savia-hero-heading {
	font-family: 'Outfit', sans-serif !important;
	font-weight: 300 !important;
	font-size: clamp(2.55rem, 3.85vw, 3.7rem) !important;
	line-height: 1.03 !important;
	letter-spacing: -0.032em !important;
	color: #0F1D2B !important;
	margin: 0 0 0.85rem !important;
}

.savia-hero-heading em {
	display: block;
	font-style: normal !important;
	font-weight: 500 !important;
	color: #1D4ED8 !important;
}

.savia-hero-lead {
	font-size: 0.98rem !important;
	line-height: 1.52 !important;
	color: #475569 !important;
	margin: 0 0 1.35rem !important;
	max-width: 340px;
}

/* Adult / Kids Segmented Pill */
.savia-arch-age-toggle {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(15, 29, 43, 0.08);
	padding: 3px;
	border-radius: 15px;
	margin-bottom: 0.95rem;
	box-shadow: 0 6px 16px rgba(15, 29, 43, 0.04);
}

.savia-age-btn {
	appearance: none;
	border: none;
	background: transparent;
	padding: 0.36rem 0.82rem;
	border-radius: 12px;
	font-family: 'Outfit', sans-serif;
	font-size: 0.76rem;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
}

.savia-age-btn.is-active {
	background: #0F1D2B;
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(15, 29, 43, 0.16);
}

/* Minimal 2-Column Porcelain Specialty Trigger Grid */
.savia-zone-selector {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	width: 100%;
	max-width: 340px;
}

.savia-zone-selector--inline {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 460px;
	margin: 0.65rem auto 0;
}

.savia-zone-tab {
	appearance: none;
	background: rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(15, 29, 43, 0.08);
	border-radius: 15px 15px 5px 15px;
	padding: 0.52rem 0.75rem;
	font-family: 'Outfit', sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition: all 0.18s ease;
	text-align: left;
}

.savia-zone-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #94A3B8;
	flex-shrink: 0;
	transition: all 0.18s ease;
}

.savia-zone-tab:hover {
	background: #FFFFFF;
	border-color: #2563EB;
	color: #2563EB;
	transform: translateY(-1px);
}

.savia-zone-tab.is-active {
	background: #2563EB;
	border-color: #2563EB;
	color: #FFFFFF;
	box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.48);
}

.savia-zone-tab.is-active .savia-zone-dot {
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* =========================================================================
   CENTER STAGE: FRAMELESS PHOTOREALISTIC 8K 3D PORCELAIN DENTAL SCULPTURE
   ========================================================================= */
.savia-3d-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.savia-section-controls {
	margin-bottom: 0.35rem;
}

.savia-3d-sculpture {
	position: relative;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	border-radius: 50%;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	filter: drop-shadow(0 30px 48px rgba(15, 29, 43, 0.12));
}

/* Seamless feathered studio blend so the 3D Porcelain Arch floats directly on the page with zero square edges! */
.savia-3d-sculpture__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: radial-gradient(ellipse 43% 48.5% at 50% 50.5%, #000000 82%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
	mask-image: radial-gradient(ellipse 43% 48.5% at 50% 50.5%, #000000 82%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.savia-arch-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kids mode gently morphs sculpture scale & focuses anterior primary dentition */
.savia-3d-sculpture:has(.savia-arch-svg.is-kids-mode) {
	transform: scale(0.9);
}

.savia-arch-svg.is-kids-mode .savia-tooth--molar {
	pointer-events: none;
}

.savia-arch-svg.is-kids-mode .savia-tooth--molar .savia-tooth-crown {
	fill: rgba(241, 246, 251, 0.72) !important;
	stroke: none !important;
}

/* Optical Laser Hotspot Rings Mapped Over Real 3D Porcelain Crowns (Zero obstruction of 3D cusps!) */
.savia-tooth {
	cursor: pointer;
}

.savia-tooth-crown {
	fill: rgba(255, 255, 255, 0.001);
	stroke: transparent;
	stroke-width: 3.5;
	transition: fill 0.22s ease, stroke 0.22s ease;
}

.savia-tooth-beacon {
	display: none;
}

.savia-tooth:hover .savia-tooth-crown {
	fill: url(#saviaLaserHover);
	stroke: #0284C7;
	stroke-width: 3.5;
}

.savia-tooth.is-highlighted {
	filter: url(#saviaOpticalGlow);
}

.savia-tooth.is-highlighted .savia-tooth-crown {
	fill: url(#saviaLaserRing);
	stroke: #2563EB;
	stroke-width: 3.6;
}

/* Floating Frosted-Glass Palatal Readout Pill in the Open Center of the 3D Arch */
.savia-palatal-hud {
	position: absolute;
	top: 50.5%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	background: rgba(15, 29, 43, 0.84);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 0.36rem 0.85rem;
	border-radius: 999px;
	font-family: 'DM Mono', monospace;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	color: #FFFFFF;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 12px 28px rgba(15, 29, 43, 0.18);
}

.savia-palatal-hud__pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #38BDF8;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* =========================================================================
   RIGHT COLUMN: FROSTED PORCELAIN GLASS PRICE & EPS LENS
   ========================================================================= */
.savia-lens-panel {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(26px);
	-webkit-backdrop-filter: blur(26px);
	border: 1px solid rgba(255, 255, 255, 0.96);
	border-radius: 42px 14px 42px 42px;
	padding: clamp(1.35rem, 2.1vw, 1.85rem);
	box-shadow:
		0 28px 64px -24px rgba(15, 29, 43, 0.12),
		inset 0 1px 0 #FFFFFF;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.savia-sim-insurers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	padding-bottom: 0.95rem;
	border-bottom: 1px solid #E8F0F8;
	margin-bottom: 0.95rem;
}

.savia-insurer-chip {
	appearance: none;
	background: #F1F6FB;
	border: 1px solid transparent;
	border-radius: 11px;
	padding: 0.32rem 0.62rem;
	font-family: 'Outfit', sans-serif;
	font-size: 0.73rem;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	transition: all 0.18s ease;
}

.savia-insurer-chip:hover {
	color: #2563EB;
	background: #E0EEFF;
}

.savia-insurer-chip.is-active {
	background: #0D9488;
	color: #FFFFFF;
}

.savia-lens-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}

.savia-diagnosis-aud {
	font-size: 0.72rem;
	font-weight: 600;
	color: #2563EB;
	background: #EFF6FF;
	padding: 0.2rem 0.6rem;
	border-radius: 9px;
}

.savia-diagnosis-time {
	font-family: 'DM Mono', monospace;
	font-size: 0.7rem;
	color: #64748B;
}

.savia-diagnosis-title {
	margin: 0 0 0.35rem !important;
	font-size: clamp(1.25rem, 1.7vw, 1.48rem) !important;
	font-weight: 600 !important;
	line-height: 1.18 !important;
	color: #0F1D2B !important;
}

.savia-diagnosis-desc {
	margin: 0 0 1rem !important;
	font-size: 0.86rem;
	line-height: 1.48;
	color: #475569;
}

.savia-lens-price-row {
	padding: 0.95rem 0;
	border-top: 1px solid #E8F0F8;
	border-bottom: 1px solid #E8F0F8;
	margin-bottom: 1.05rem;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

.savia-sim-price-label {
	font-family: 'DM Mono', monospace;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748B;
}

.savia-sim-price-figure {
	display: flex;
	align-items: baseline;
	gap: 0.26rem;
}

.savia-currency {
	font-size: 1.12rem;
	font-weight: 600;
	color: #2563EB;
}

.savia-sim-price-figure strong {
	font-size: clamp(2.35rem, 3.2vw, 2.95rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #0F1D2B;
}

.savia-sim-original {
	font-size: 0.92rem;
	color: #94A3B8;
	margin-left: 0.35rem;
}

.savia-sim-installments {
	font-size: 0.8rem;
	font-weight: 600;
	color: #0D9488;
	margin-top: 0.12rem;
}

.savia-eps-note {
	font-size: 0.75rem;
	color: #64748B;
}

.savia-diagnosis-actions {
	display: grid;
	grid-template-columns: 1.25fr 0.85fr;
	gap: 0.5rem;
}

.savia-cta-sapphire,
.savia-cta-mint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 0.95rem;
	border-radius: 16px 16px 6px 16px;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.2s ease;
	text-align: center;
}

.savia-cta-sapphire {
	background: #2563EB;
	color: #FFFFFF !important;
	box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.45);
}

.savia-cta-sapphire:hover {
	background: #1D4ED8;
	transform: translateY(-2px);
}

.savia-cta-mint {
	background: #F1F6FB;
	color: #0F1D2B !important;
	border: 1px solid #DCE7F3;
}

.savia-cta-mint:hover {
	border-color: #0D9488;
	color: #0D9488 !important;
}
