/*
Theme Name: Vital Prime Landing
Theme URI: https://vitalprime.app
Author: Grupo Doscar
Description: Landing de Vital Prime. La aplicacion vive en app.vitalprime.app.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vitalprime
*/

/* ==========================================================================
   Clases PROPIAS (prefijo vp-). Las utilidades (gradient-hero, gradient-navy,
   shadow-soft, shadow-glow, font-display, text-primary...) vienen del CSS
   compilado de la aplicacion real, en assets/original.css.
   ========================================================================== */

html { scroll-behavior: smooth; }

/* --------------------------------------------------------------------------
   Botones. Calcan el componente Button de la aplicacion.
   -------------------------------------------------------------------------- */
.vp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	white-space: nowrap;
	border-radius: .5rem;
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.25rem;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	padding: .625rem 1rem;
	transition: all .2s ease;
}
.vp-btn-sm { height: 2.25rem; padding: 0 .75rem; font-size: .875rem; }
.vp-btn-lg { height: 3.5rem; padding: 0 2rem;    font-size: 1rem; }
.vp-btn-xl { height: 3.5rem; padding: 0 2.5rem;  font-size: 1rem; }

.vp-btn-primario,
.vp-btn-primario:hover,
.vp-btn-primario:focus {
	color: hsl(var(--primary-foreground));
	text-decoration: none;
}
.vp-btn-primario:hover  { transform: scale(1.04); }
.vp-btn-primario:active { transform: scale(.97); }

.vp-btn-fantasma {
	background: transparent;
	color: hsl(var(--foreground));
}
.vp-btn-fantasma:hover {
	background: hsl(var(--muted));
	color: hsl(var(--foreground));
}

.vp-enlace-plano,
.vp-enlace-plano:hover { text-decoration: none; color: inherit; }

/* --------------------------------------------------------------------------
   Aparicion al entrar en pantalla.
   El original usa Framer Motion: opacidad 0 / y 20 -> opacidad 1 / y 0,
   con 0,4 s de duracion y retardo escalonado.
   -------------------------------------------------------------------------- */
.vp-rev {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .4s cubic-bezier(0, 0, .2, 1),
	            transform .4s cubic-bezier(0, 0, .2, 1);
	transition-delay: var(--vp-retardo, 0s);
}
.vp-rev.vp-visible { opacity: 1; transform: none; }

/* Tarjetas: se elevan al pasar el raton, como en el original */
.vp-tarjeta,
.vp-paso {
	transition: transform .3s ease, box-shadow .3s ease,
	            opacity .4s cubic-bezier(0, 0, .2, 1);
}
.vp-tarjeta:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 0 30px -5px hsl(260 70% 58% / .25);
}
.vp-paso:hover { transform: translateY(-8px); }

/* --------------------------------------------------------------------------
   Movimiento del hero
   -------------------------------------------------------------------------- */
.vp-flota { animation: vp-flota 4s ease-in-out infinite; }
@keyframes vp-flota {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}

/* Las dos tarjetitas junto al movil: entran y luego flotan */
.vp-tarjeta-flotante {
	opacity: 0;
	animation: vp-entra .5s cubic-bezier(.2, .8, .2, 1) var(--vp-retardo, 1s) forwards;
}
@keyframes vp-entra {
	from { opacity: 0; transform: translateX(-40px) scale(.8); }
	to   { opacity: 1; transform: none; }
}

/* La imagen de transformacion crece y se endereza al entrar */
.vp-escala {
	transform: scale(.85) rotate(-3deg);
	transition: transform .8s ease-out;
}
.vp-escala.vp-visible { transform: none; }

/* La linea que une los tres pasos se dibuja al llegar */
.vp-linea { width: 0; transition: width 1s ease-out; }
.vp-linea.vp-visible { width: 100%; }

.vp-orbe { animation: vp-orbe 8s ease-in-out infinite; }
@keyframes vp-orbe {
	0%, 100% { transform: scale(.6); }
	50%      { transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   En movil el original quita el parallax y las animaciones pesadas
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.vp-solo-escritorio { display: none; }
	.vp-flota, .vp-orbe { animation: none; }
	.vp-parallax { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vp-rev { opacity: 1; transform: none; transition: none; }
	.vp-flota, .vp-orbe { animation: none; }
	.vp-tarjeta-flotante { animation: none; opacity: 1; }
	.vp-escala { transform: none; }
	.vp-linea { width: 100%; }
	.vp-parallax { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Accesibilidad y barra de administracion de WordPress
   -------------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: .5rem; left: .5rem;
	z-index: 100000;
	width: auto; height: auto;
	clip: auto;
	padding: .75rem 1rem;
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-radius: .5rem;
}

body.admin-bar nav.fixed { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar nav.fixed { top: 46px; }
}
