/* NovaBuilder — estilos del frontend (ligeros, sin dependencias) */

.nb-canvas-body { margin: 0; }

.nb-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #0f172a;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.nb-page * { box-sizing: border-box; }
.nb-page img { max-width: 100%; height: auto; display: inline-block; }
.nb-page h1, .nb-page h2, .nb-page h3, .nb-page h4 { margin: 0 0 .5em; line-height: 1.2; }
.nb-page p { margin: 0 0 1em; }
html { scroll-behavior: smooth; }

/* ------------------------------------------------ Estructura ----------- */
.nb-section { position: relative; padding: 80px 24px; }
.nb-overlay { position: absolute; inset: 0; pointer-events: none; }
.nb-container { position: relative; max-width: 1140px; margin: 0 auto; z-index: 1; }
.nb-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.nb-col { flex: 1 1 0; min-width: 0; }
.nb-widget { margin-bottom: 20px; }
.nb-widget:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.nb-cols { flex-direction: column; }
	.nb-col { flex-basis: auto !important; width: 100%; }
}

/* Visibilidad por dispositivo */
@media (min-width: 1025px) { .nb-hide-d { display: none !important; } }
@media (max-width: 1024px) and (min-width: 768px) { .nb-hide-t { display: none !important; } }
@media (max-width: 767px) { .nb-hide-m { display: none !important; } }

/* ------------------------------------------------ Animaciones ---------- */
.nb-js [data-nb-anim] {
	opacity: 0;
	transition:
		opacity var(--nb-dur, .7s) cubic-bezier(.22, .61, .36, 1) var(--nb-delay, 0s),
		transform var(--nb-dur, .7s) cubic-bezier(.22, .61, .36, 1) var(--nb-delay, 0s),
		filter var(--nb-dur, .7s) ease var(--nb-delay, 0s);
	will-change: opacity, transform;
}
.nb-js [data-nb-anim="fade-up"]    { transform: translateY(36px); }
.nb-js [data-nb-anim="fade-down"]  { transform: translateY(-36px); }
.nb-js [data-nb-anim="fade-left"]  { transform: translateX(48px); }
.nb-js [data-nb-anim="fade-right"] { transform: translateX(-48px); }
.nb-js [data-nb-anim="zoom-in"]    { transform: scale(.9); }
.nb-js [data-nb-anim="blur-in"]    { filter: blur(10px); }
.nb-js [data-nb-anim="flip-up"]    { transform: perspective(900px) rotateX(18deg) translateY(24px); }
.nb-js .nb-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
	.nb-js [data-nb-anim] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ------------------------------------------------ Botones -------------- */
.nb-btn {
	display: inline-block;
	background: #2563eb;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.nb-btn-sm { padding: 8px 18px; font-size: 14px; }
.nb-btn-md { padding: 13px 28px; font-size: 16px; }
.nb-btn-lg { padding: 17px 38px; font-size: 18px; }
.nb-btn-full { display: block; width: 100%; }
.nb-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

.nb-hover-lift:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(2, 6, 23, .18); }
.nb-hover-pulse { animation: nb-pulse 2s infinite; }
@keyframes nb-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
	70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.nb-hover-shine::after {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 50%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	animation: nb-shine 3.2s infinite;
}
@keyframes nb-shine { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }

/* ------------------------------------------------ Hero ----------------- */
.nb-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
	color: inherit;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 22px;
	backdrop-filter: blur(4px);
}
.nb-hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.nb-hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .85; max-width: 640px; margin: 0 auto 1.6em; }
.nb-hero[style], .nb-hero { }
.nb-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nb-w-hero[data-nb-anim] .nb-hero-btns { }

/* ------------------------------------------------ Imagen / vídeo ------- */
.nb-image-empty, .nb-video-empty, .nb-empty-hint {
	padding: 40px 20px;
	text-align: center;
	background: #f1f5f9;
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	color: #64748b;
	font-size: 14px;
}
.nb-video { position: relative; overflow: hidden; border-radius: inherit; cursor: pointer; background: #000; }
.nb-ratio-169 { aspect-ratio: 16 / 9; }
.nb-ratio-916 { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.nb-ratio-11 { aspect-ratio: 1 / 1; }
.nb-video img, .nb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nb-video-play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 74px; height: 74px;
	border-radius: 50%;
	border: 0;
	background: rgba(220, 38, 38, .95);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	transition: transform .2s ease;
	display: grid;
	place-items: center;
	padding-left: 6px;
}
.nb-video:hover .nb-video-play { transform: translate(-50%, -50%) scale(1.12); }

/* ------------------------------------------------ Cuenta atrás --------- */
.nb-cd-boxes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nb-cd-boxes[hidden], .nb-form [hidden], .nb-btn[hidden] { display: none !important; }
.nb-cd-box {
	min-width: 84px;
	padding: 14px 10px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.nb-cd-num { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.nb-cd-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.nb-cd-end { font-size: 1.2rem; font-weight: 700; text-align: center; }

/* ------------------------------------------------ Testimonios ---------- */
.nb-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.nb-tcard {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 26px;
	box-shadow: 0 4px 14px rgba(2, 6, 23, .05);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nb-tcard:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(2, 6, 23, .1); }
.nb-tstars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.nb-ttext { font-size: .98rem; color: #334155; }
.nb-tmeta { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.nb-tmeta div { display: flex; flex-direction: column; line-height: 1.3; }
.nb-tmeta span { font-size: .8rem; color: #64748b; }
.nb-tavatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nb-tavatar-ph {
	display: grid;
	place-items: center;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
}

/* ------------------------------------------------ Precios -------------- */
.nb-price-card {
	position: relative;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 28px;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.nb-price-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(2, 6, 23, .12); }
.nb-price-card.is-featured {
	border: 2px solid #2563eb;
	box-shadow: 0 18px 40px rgba(37, 99, 235, .18);
	transform: scale(1.03);
}
.nb-price-badge {
	position: absolute;
	top: -13px; left: 50%;
	transform: translateX(-50%);
	background: #2563eb;
	color: #fff;
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}
.nb-price-plan { font-size: 1.1rem; color: #64748b; font-weight: 600; }
.nb-price-line { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 8px 0 18px; }
.nb-price-old { text-decoration: line-through; color: #94a3b8; margin-right: 8px; font-size: 1.1rem; }
.nb-price-cur { font-size: 1.4rem; font-weight: 700; }
.nb-price-num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.nb-price-per { color: #64748b; }
.nb-price-feats { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; }
.nb-price-feats li { padding: 9px 0 9px 30px; border-bottom: 1px dashed #e2e8f0; position: relative; }
.nb-price-feats li::before { content: "✓"; position: absolute; left: 4px; color: #16a34a; font-weight: 800; }

/* ------------------------------------------------ FAQ ------------------ */
.nb-faq { display: flex; flex-direction: column; gap: 12px; }
.nb-faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.nb-faq-q {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: none;
	border: 0;
	padding: 18px 20px;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font-family: inherit;
}
.nb-faq-ico { font-size: 1.3rem; color: #2563eb; transition: transform .3s ease; flex-shrink: 0; }
.nb-faq-item.is-open .nb-faq-ico { transform: rotate(45deg); }
.nb-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.nb-faq-item.is-open .nb-faq-a { grid-template-rows: 1fr; }
.nb-faq-a-inner { overflow: hidden; padding: 0 20px; color: #475569; }
.nb-faq-item.is-open .nb-faq-a-inner { padding-bottom: 18px; }

/* ------------------------------------------------ Características ------ */
.nb-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.nb-feature {
	padding: 30px 22px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.nb-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(2, 6, 23, .08); }
.nb-feature-ico { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.nb-feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.nb-feature p { color: #64748b; font-size: .95rem; margin: 0; }

/* ------------------------------------------------ Formulario ----------- */
.nb-form { display: flex; flex-direction: column; gap: 12px; }
.nb-form input, .nb-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: #0f172a;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.nb-form input:focus, .nb-form textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.nb-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.nb-form-msg { padding: 12px 16px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 600; }
.nb-form-msg.is-error { background: #fee2e2; color: #991b1b; }
