/* =========================================================
   VH Mantenimiento Pro — Página pública
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body.vhmt {
	min-height: 100vh;
	min-height: 100dvh;
	font-family: var(--vh-font-b);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vh-text);
	background: var(--vh-fallback);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	position: relative;
}
.vhmt img { max-width: 100%; height: auto; }
.vhmt a { color: inherit; }
.vhmt-ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Fondo ---------- */
.vhmt-bg { position: fixed; inset: 0; z-index: 0; background: var(--vh-page-bg); }
.vhmt-overlay { position: fixed; inset: 0; z-index: 0; background: var(--vh-overlay); }
.vhmt-shapes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.vhmt-shapes span {
	position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
	animation: vhmtFloat 22s ease-in-out infinite alternate;
}
.vhmt-shapes span:nth-child(1) { width: 42vmax; height: 42vmax; background: var(--vh-primary); top: -14vmax; left: -12vmax; }
.vhmt-shapes span:nth-child(2) { width: 34vmax; height: 34vmax; background: var(--vh-accent); bottom: -14vmax; right: -10vmax; animation-duration: 26s; animation-delay: -6s; }
.vhmt-shapes span:nth-child(3) { width: 18vmax; height: 18vmax; background: var(--vh-primary); top: 55%; left: 60%; opacity: .25; animation-duration: 18s; animation-delay: -3s; }
@keyframes vhmtFloat {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(6vmax, 4vmax) scale(1.12); }
	100% { transform: translate(-4vmax, 6vmax) scale(.95); }
}

/* ---------- Estructura ---------- */
.vhmt-wrap {
	position: relative; z-index: 1;
	min-height: 100vh; min-height: 100dvh;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(20px, 4vw, 48px) 16px;
	padding-left: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
}
.vhmt-content { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- Tarjeta ---------- */
.vhmt-card {
	width: 100%;
	text-align: center;
	padding: clamp(28px, 5.5vw, 56px) clamp(20px, 5.5vw, 60px);
	border-radius: var(--vh-radius);
}
.vhmt-card-glass .vhmt-card {
	background: var(--vh-card-glass);
	border: 1px solid var(--vh-card-glass-line);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	backdrop-filter: blur(20px) saturate(150%);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.vhmt-card-solid .vhmt-card {
	background: var(--vh-card);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.vhmt-card-none .vhmt-card { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Logo ---------- */
.vhmt-logo { margin: 0 auto 26px; }
.vhmt-logo img { display: block; margin: 0 auto; width: var(--vh-logo-w); max-width: 78%; height: auto; }
.vhmt-logo-text {
	display: inline-block; font-family: var(--vh-font-h); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem);
	letter-spacing: -.02em;
}

/* ---------- Etiqueta ---------- */
.vhmt-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 16px 7px 12px; margin-bottom: 20px;
	font-size: .82rem; font-weight: 600; letter-spacing: .02em;
	color: var(--vh-text);
	background: var(--vh-primary-soft);
	border: 1px solid var(--vh-primary-line);
	border-radius: 999px;
}
.vhmt-badge .vhmt-ico { color: var(--vh-primary); width: 1em; height: 1em; }
.vhmt-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vh-primary); box-shadow: 0 0 0 0 var(--vh-primary-line); animation: vhmtPulse 2s infinite; }
@keyframes vhmtPulse { 0% { box-shadow: 0 0 0 0 var(--vh-primary-line); } 70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* ---------- Textos ---------- */
.vhmt-title {
	margin: 0 0 14px;
	font-family: var(--vh-font-h);
	font-size: clamp(1.9rem, 5.4vw, 3.4rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.vhmt-subtitle {
	margin: 0 auto;
	max-width: 580px;
	font-size: clamp(1rem, 2.2vw, 1.15rem);
	color: var(--vh-text-muted);
	text-wrap: pretty;
}
.vhmt-message { margin: 16px auto 0; max-width: 580px; color: var(--vh-text-muted); font-size: .98rem; }
.vhmt-message p { margin: 0 0 .7em; }
.vhmt-message p:last-child { margin-bottom: 0; }
.vhmt-message a { color: var(--vh-primary); }

/* ---------- Cuenta regresiva ---------- */
.vhmt-countdown { margin-top: 30px; }
.vhmt-countdown-title { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--vh-text-muted); }
.vhmt-countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 14px); max-width: 480px; margin: 0 auto; }
.vhmt-cd {
	padding: clamp(10px, 2.4vw, 16px) 4px;
	background: var(--vh-text-soft);
	border: 1px solid var(--vh-text-line);
	border-radius: calc(var(--vh-radius) * .6);
}
.vhmt-cd strong {
	display: block; font-family: var(--vh-font-h); font-weight: 700;
	font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.vhmt-cd span { display: block; margin-top: 4px; font-size: clamp(.62rem, 1.8vw, .74rem); text-transform: uppercase; letter-spacing: .1em; color: var(--vh-text-muted); }
.vhmt-countdown.is-done .vhmt-cd { opacity: .55; }

/* ---------- Progreso ---------- */
.vhmt-progress { margin: 30px auto 0; max-width: 480px; text-align: left; }
.vhmt-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: .88rem; color: var(--vh-text-muted); }
.vhmt-progress-head strong { color: var(--vh-text); font-family: var(--vh-font-h); }
.vhmt-progress-track { height: 10px; border-radius: 99px; background: var(--vh-text-soft); overflow: hidden; }
.vhmt-progress-bar {
	height: 100%; width: var(--vh-progress); border-radius: inherit;
	background: linear-gradient(90deg, var(--vh-primary), var(--vh-accent));
	background-size: 200% 100%;
	position: relative;
	animation: vhmtGrow 1.6s cubic-bezier(.2, .8, .2, 1) both, vhmtShift 4s linear infinite;
}
.vhmt-progress-bar::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: translateX(-100%);
	animation: vhmtShine 2.4s ease-in-out 1.6s infinite;
}
@keyframes vhmtGrow { from { width: 0; } }
@keyframes vhmtShift { to { background-position: -200% 0; } }
@keyframes vhmtShine { to { transform: translateX(100%); } }

/* ---------- Botón WhatsApp ---------- */
.vhmt-cta { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.vhmt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 28px;
	font-family: var(--vh-font-b); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; border-radius: 999px;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.vhmt-btn .vhmt-ico { width: 1.35em; height: 1.35em; }
.vhmt-btn-wa { background: #25d366; color: #fff !important; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .8); }
.vhmt-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.vhmt-btn:focus-visible { outline: 3px solid var(--vh-accent); outline-offset: 3px; }

/* ---------- Contacto ---------- */
.vhmt-contact { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--vh-text-line); }
.vhmt-contact-title { margin: 0 0 16px; font-family: var(--vh-font-h); font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 600; }
.vhmt-contact-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.vhmt-contact-item {
	display: flex; align-items: center; gap: 12px; height: 100%;
	padding: 12px 14px; text-align: left; text-decoration: none;
	background: var(--vh-text-soft);
	border: 1px solid var(--vh-text-line);
	border-radius: calc(var(--vh-radius) * .6);
	transition: transform .2s, border-color .2s, background .2s;
}
.vhmt-contact-item:hover { transform: translateY(-2px); border-color: var(--vh-primary-line); background: var(--vh-primary-soft); }
.vhmt-contact-item:focus-visible { outline: 2px solid var(--vh-primary); outline-offset: 2px; }
.vhmt-contact-icon {
	flex: none; width: 42px; height: 42px; border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--vh-primary), var(--vh-accent));
	color: var(--vh-on-primary);
}
.vhmt-contact-icon .vhmt-ico { width: 20px; height: 20px; }
.vhmt-contact-text { min-width: 0; display: flex; flex-direction: column; }
.vhmt-contact-text small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--vh-text-muted); line-height: 1.3; }
.vhmt-contact-text strong { font-weight: 600; font-size: .95rem; overflow-wrap: break-word; word-break: break-word; line-height: 1.35; }

/* ---------- Redes ---------- */
.vhmt-social { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.vhmt-social a {
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; text-decoration: none;
	border: 1px solid var(--vh-text-line); background: var(--vh-text-soft);
	transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.vhmt-social a .vhmt-ico { width: 19px; height: 19px; }
.vhmt-social a:hover, .vhmt-social a:focus-visible {
	transform: translateY(-3px); background: var(--vh-primary); border-color: var(--vh-primary); color: var(--vh-on-primary); outline: none;
}

/* ---------- Pie ---------- */
.vhmt-footer {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px;
	font-size: .82rem; color: var(--vh-text-muted); text-align: center;
}
.vhmt-footer a { text-decoration: none; }
.vhmt-login { display: inline-flex; align-items: center; gap: 5px; opacity: .8; }
.vhmt-login:hover { opacity: 1; text-decoration: underline; }
.vhmt-login .vhmt-ico { width: .95em; height: .95em; }

/* ---------- WhatsApp flotante ---------- */
.vhmt-wa-float {
	position: fixed; z-index: 10;
	right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff !important; text-decoration: none;
	box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .75);
	transition: transform .2s;
}
.vhmt-wa-float .vhmt-ico { width: 30px; height: 30px; }
.vhmt-wa-float::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid #25d366; animation: vhmtRing 2.2s ease-out infinite;
}
.vhmt-wa-float:hover { transform: scale(1.07); }
.vhmt-wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vhmt-wa-tip {
	position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
	white-space: nowrap; padding: 8px 14px; border-radius: 10px;
	background: #fff; color: #111827; font-size: .85rem; font-weight: 600;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35);
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.vhmt-wa-float:hover .vhmt-wa-tip, .vhmt-wa-float:focus-visible .vhmt-wa-tip { opacity: 1; transform: translate(0, -50%); }
@keyframes vhmtRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* =========================================================
   Distribución: Minimalista
   ========================================================= */
.vhmt-layout-minimal .vhmt-card { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 8px; padding-bottom: 8px; }
.vhmt-layout-minimal .vhmt-title { font-size: clamp(2.1rem, 6.4vw, 4.2rem); }
.vhmt-layout-minimal .vhmt-contact { border-top: 0; }

/* =========================================================
   Distribución: Dividida
   ========================================================= */
.vhmt-layout-split .vhmt-wrap { padding: 0; display: grid; grid-template-columns: 1fr; align-items: stretch; }
.vhmt-layout-split .vhmt-media { order: -1; min-height: 34vh; background: var(--vh-media-bg); position: relative; }
.vhmt-layout-split .vhmt-content {
	max-width: none; justify-content: center; gap: 24px;
	padding: clamp(28px, 6vw, 72px) max(16px, env(safe-area-inset-left));
}
.vhmt-layout-split.vhmt-card-solid .vhmt-content { background: var(--vh-card); }
.vhmt-layout-split .vhmt-card {
	max-width: 620px; text-align: left; padding: 0;
	background: none !important; border: 0 !important; box-shadow: none !important;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.vhmt-layout-split .vhmt-logo img { margin: 0; }
.vhmt-layout-split .vhmt-subtitle,
.vhmt-layout-split .vhmt-message,
.vhmt-layout-split .vhmt-countdown-grid,
.vhmt-layout-split .vhmt-progress { margin-left: 0; margin-right: 0; }
.vhmt-layout-split .vhmt-cta,
.vhmt-layout-split .vhmt-social { justify-content: flex-start; }
.vhmt-layout-split .vhmt-footer { justify-content: flex-start; max-width: 620px; width: 100%; }
.vhmt-layout-split .vhmt-countdown-title { text-align: left; }
.vhmt-layout-split .vhmt-cd { text-align: center; }

@media (min-width: 960px) {
	.vhmt-layout-split .vhmt-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.vhmt-layout-split .vhmt-media { order: 0; min-height: 100vh; min-height: 100dvh; position: sticky; top: 0; height: 100vh; height: 100dvh; }
	.vhmt-layout-split .vhmt-content { align-items: flex-start; padding-left: clamp(40px, 6vw, 96px); padding-right: clamp(32px, 4vw, 64px); }
}
@media (max-width: 959px) {
	.vhmt-layout-split .vhmt-card,
	.vhmt-layout-split .vhmt-footer { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   Animaciones de entrada
   ========================================================= */
.vhmt-anim .vhmt-card > * { animation: vhmtUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.vhmt-anim .vhmt-card > *:nth-child(2) { animation-delay: .08s; }
.vhmt-anim .vhmt-card > *:nth-child(3) { animation-delay: .16s; }
.vhmt-anim .vhmt-card > *:nth-child(4) { animation-delay: .24s; }
.vhmt-anim .vhmt-card > *:nth-child(5) { animation-delay: .32s; }
.vhmt-anim .vhmt-card > *:nth-child(6) { animation-delay: .40s; }
.vhmt-anim .vhmt-card > *:nth-child(n+7) { animation-delay: .48s; }
.vhmt-anim .vhmt-footer { animation: vhmtUp .8s .55s cubic-bezier(.2, .8, .2, 1) both; }
.vhmt-anim .vhmt-wa-float { animation: vhmtPop .5s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes vhmtUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes vhmtPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 480px) {
	.vhmt-btn { width: 100%; }
	.vhmt-wa-float { width: 54px; height: 54px; }
	.vhmt-wa-float .vhmt-ico { width: 27px; height: 27px; }
	.vhmt-wa-tip { display: none; }
	.vhmt-contact-item { padding: 10px 12px; }
}

/* Espacio para que el botón flotante no tape el pie en móviles */
@media (max-width: 640px) {
	.vhmt-footer { padding-bottom: 64px; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.vhmt-shapes { display: none; }
}

/* Decoración del panel lateral (Dividida) */
.vhmt-layout-split .vhmt-media { overflow: hidden; }
.vhmt-layout-split .vhmt-media.is-plain::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .22) 1px, transparent 0) 0 0 / 22px 22px;
	-webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
	mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
}
.vhmt-layout-split .vhmt-media.is-plain::after {
	content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; bottom: -15%;
	border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25);
	box-shadow: 0 0 0 40px rgba(255, 255, 255, .06), 0 0 0 90px rgba(255, 255, 255, .04);
}
