/* SIGAP Mejoras · herramientas de venta y estética premium (v3). */

:root {
	--sg-navy: #061a40;
	--sg-blue: #0a2a66;
	--sg-electric: #1e6bff;
	--sg-cyan: #3ad1ff;
	--sg-accent: #f7941d;
	--sg-ink: #0f1b33;
	--sg-muted: #5b6b85;
	--sg-line: #dfe6f1;
	--sg-soft: #f3f6fc;
	--sg-ok: #16a34a;
}

/* ---------- Botones genéricos ---------- */
.sigap-btn {
	display: inline-block;
	background: var(--sg-accent);
	color: var(--sg-ink) !important;
	border: 2px solid var(--sg-accent);
	border-radius: 12px;
	padding: 13px 24px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sigap-btn:hover, .sigap-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(247, 148, 29, .35); }
.sigap-btn-ghost { background: transparent; color: var(--sg-blue) !important; border-color: var(--sg-line); }
.sigap-btn-ghost:hover { box-shadow: none; border-color: var(--sg-blue); }

/* ---------- Encabezado premium (azul eléctrico sobre fondo oscuro) ---------- */
.sigap-home .sigap-hero,
.sigap-home .sigap-cta {
	background:
		radial-gradient(900px 480px at 85% -10%, rgba(30, 107, 255, .55), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(58, 209, 255, .22), transparent 60%),
		linear-gradient(160deg, var(--sg-navy) 0%, var(--sg-blue) 100%) !important;
	position: relative;
	overflow: hidden;
}
.sigap-home .sigap-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
	pointer-events: none;
}
.sigap-home .sigap-hero > * { position: relative; }
.sigap-home .sigap-hero h1 {
	font-size: clamp(2.1rem, 4.4vw, 3.6rem) !important;
	letter-spacing: -0.02em;
}
.sigap-home .sigap-hero .sigap-eyebrow {
	display: inline-block;
	color: #cfe0ff;
	background: rgba(30, 107, 255, .22);
	border: 1px solid rgba(58, 209, 255, .35);
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: .08em;
	font-size: .78rem;
}
.sigap-home .sigap-hero-img img {
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35));
}

/* Tarjetas con elevación al pasar el cursor */
.sigap-home .sigap-card {
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sigap-home .sigap-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(10, 42, 102, .12);
	border-color: #c9d6ee;
}
.sigap-home .sigap-section > h2 { color: var(--sg-blue) !important; }

/* ---------- Formulario de demo ---------- */
.sigap-form {
	background: #fff;
	color: var(--sg-ink);
	border-radius: 20px;
	padding: clamp(22px, 4vw, 40px);
	box-shadow: 0 30px 80px rgba(6, 26, 64, .18);
	border: 1px solid var(--sg-line);
	max-width: 720px;
	margin: 0 auto;
	text-align: left;
	scroll-margin-top: 90px;
}
.sigap-form h3 { margin: 0 0 6px; font-size: 1.5rem; color: var(--sg-ink); }
.sigap-form-intro { color: var(--sg-muted); margin: 0 0 18px; }
.sigap-form fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.sigap-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; padding: 0; color: var(--sg-ink); }
.sigap-step-n { display: block; font-size: .78rem; font-weight: 600; color: var(--sg-electric); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.sigap-field { display: block; margin-bottom: 14px; }
.sigap-field > span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--sg-ink); }
.sigap-form input[type=text], .sigap-form input[type=tel], .sigap-form input[type=email], .sigap-form select {
	width: 100%;
	border: 1.5px solid var(--sg-line);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
	color: var(--sg-ink);
}
.sigap-form input:focus, .sigap-form select:focus { outline: none; border-color: var(--sg-electric); box-shadow: 0 0 0 4px rgba(30, 107, 255, .15); }
.sigap-form .is-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12) !important; }
.sigap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sigap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sigap-chip { border: 1.5px solid var(--sg-line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .92rem; }
.sigap-chip:has(input:checked) { border-color: var(--sg-electric); background: rgba(30, 107, 255, .08); color: var(--sg-blue); font-weight: 600; }
.sigap-chip input { accent-color: var(--sg-electric); }
.sigap-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--sg-muted); margin: 6px 0 16px; }
.sigap-consent input { margin-top: 4px; accent-color: var(--sg-electric); }
.sigap-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sigap-back { background: none; border: 0; color: var(--sg-muted); cursor: pointer; font: inherit; padding: 8px 0; }
.sigap-form:not(.is-stepped) .sigap-next, .sigap-form:not(.is-stepped) .sigap-back { display: none; }
.sigap-lead-form:not(.is-stepped) .sigap-next, .sigap-lead-form:not(.is-stepped) .sigap-back { display: none; }
.sigap-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sigap-form-error { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 14px; }
.sigap-form-done { text-align: center; }
.sigap-form-check { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--sg-ok); font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
@media (max-width: 600px) { .sigap-row { grid-template-columns: 1fr; } }

/* Sección que contiene el formulario */
.sigap-home .sigap-demo-section {
	background: linear-gradient(180deg, var(--sg-soft) 0%, #fff 100%);
}

/* ---------- Comparativa de planes ---------- */
.sigap-compare-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--sg-line); background: #fff; }
.sigap-compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.sigap-compare th, .sigap-compare td { padding: 14px 16px; border-bottom: 1px solid var(--sg-line); text-align: center; }
.sigap-compare th:first-child, .sigap-compare td:first-child { text-align: left; color: var(--sg-ink); }
.sigap-compare thead th { background: var(--sg-blue); color: #fff; font-weight: 700; position: sticky; top: 0; }
.sigap-compare thead th.is-featured { background: var(--sg-accent); color: var(--sg-ink); }
.sigap-compare td.yes { color: var(--sg-ok); font-weight: 700; }
.sigap-compare td.no { color: #b6c2d6; }
.sigap-compare tr.sigap-compare-price td { font-weight: 700; font-size: 1.05rem; }
.sigap-save { display: inline-block; background: #dcfce7; color: #166534; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-top: 4px; }

/* ---------- Cuestionario ---------- */
.sigap-quiz { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--sg-line); box-shadow: 0 20px 50px rgba(6, 26, 64, .10); text-align: center; }
.sigap-quiz-step { color: var(--sg-electric); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sigap-quiz-q { border: 0; padding: 0; margin: 0; }
.sigap-quiz-q legend { font-size: 1.25rem; font-weight: 700; color: var(--sg-ink); margin: 0 auto 18px; padding: 0; }
.sigap-quiz-q button { font: inherit; font-weight: 600; margin: 6px; padding: 14px 26px; border-radius: 12px; border: 1.5px solid var(--sg-line); background: #fff; color: var(--sg-ink); cursor: pointer; min-width: 180px; }
.sigap-quiz-q button:hover, .sigap-quiz-q button:focus-visible { border-color: var(--sg-electric); background: rgba(30, 107, 255, .06); }
.sigap-quiz-label { color: var(--sg-muted); margin: 0; }
.sigap-quiz-plan { font-size: 2rem; font-weight: 800; color: var(--sg-blue); margin: 4px 0; }

/* ---------- Calculadora ---------- */
.sigap-calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.sigap-calc-inputs { background: #fff; border: 1px solid var(--sg-line); border-radius: 20px; padding: 26px; }
.sigap-calc-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; margin-bottom: 22px; }
.sigap-calc-inputs label span { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; }
.sigap-calc-inputs input[type=range] { width: 100%; accent-color: var(--sg-electric); }
.sigap-calc-inputs output { font-weight: 700; color: var(--sg-blue); min-width: 64px; text-align: right; }
.sigap-calc-result { border-radius: 20px; padding: 28px; color: #fff; background: linear-gradient(160deg, var(--sg-navy), var(--sg-electric)); display: flex; flex-direction: column; justify-content: center; }
.sigap-calc-result p { margin: 0 0 6px; color: rgba(255, 255, 255, .85); }
.sigap-calc-big { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff !important; line-height: 1.1; }
.sigap-calc-note { color: #fff !important; font-weight: 600; margin-top: 12px !important; }
.sigap-calc-disclaimer { font-size: .78rem; opacity: .75; margin-top: 14px !important; }
@media (max-width: 781px) { .sigap-calc { grid-template-columns: 1fr; } }

/* ---------- Testimonios y clientes ---------- */
.sigap-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.sigap-testimonials + h2, .sigap-testimonials ~ h2 { text-align: center; }
.sigap-testimonial { margin: 0; background: #fff; border: 1px solid var(--sg-line); border-radius: 18px; padding: 24px; }
.sigap-testimonial blockquote { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; color: var(--sg-ink); border: 0; padding: 0; }
.sigap-testimonial blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .8; color: var(--sg-accent); }
.sigap-testimonial figcaption span { display: block; color: var(--sg-muted); font-size: .9rem; }
.sigap-clients { text-align: center; }
.sigap-clients-title { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--sg-muted); }
.sigap-clients ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.sigap-clients a { color: var(--sg-blue); font-weight: 700; font-size: 1.05rem; text-decoration: none; opacity: .75; }
.sigap-clients a:hover { opacity: 1; }

/* ---------- Barra de promoción ---------- */
.sigap-promo { background: var(--sg-accent); color: var(--sg-ink); text-align: center; padding: 9px 16px; font-weight: 600; font-size: .95rem; }
.sigap-promo a { color: var(--sg-ink); text-decoration: underline; margin-left: 6px; }

/* ---------- Barra fija en celular ---------- */
.sigap-sticky { display: none; }
@media (max-width: 781px) {
	.sigap-sticky { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; box-shadow: 0 -6px 20px rgba(6, 26, 64, .18); }
	.sigap-sticky a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; }
	.sigap-sticky-demo { background: var(--sg-accent); color: var(--sg-ink) !important; }
	.sigap-sticky-wa { background: #25d366; color: #fff !important; }
	body { padding-bottom: 56px; }
	/* Sube el botón flotante de WhatsApp existente para que no tape la barra */
	.qlwapp, .qlwapp__container, #qlwapp { bottom: 64px !important; }
}

/* ---------- Ventana al salir ---------- */
.sigap-exit { position: fixed; inset: 0; z-index: 99999; background: rgba(6, 26, 64, .62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sigap-exit[hidden] { display: none; }
.sigap-exit-box { position: relative; background: #fff; border-radius: 22px; max-width: 520px; padding: 36px 32px 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); text-align: center; }
.sigap-exit-box h2 { margin: 0 0 10px; color: var(--sg-ink); font-size: 1.6rem; }
.sigap-exit-box p { color: var(--sg-muted); }
.sigap-exit-eyebrow { color: var(--sg-electric) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 0 0 6px; }
.sigap-exit-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--sg-muted); }

/* ---------- Aparición suave ---------- */
.sigap-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.sigap-reveal.sigap-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.sigap-reveal { opacity: 1; transform: none; transition: none; }
	.sigap-home .sigap-card, .sigap-btn { transition: none; }
}

/* Secciones que se ocultan solas si no hay contenido */
.sigap-home .sigap-clients-section:not(:has(.sigap-clients)),
.sigap-home .sigap-testimonials-section:not(:has(.sigap-testimonials)) {
	display: none;
}
.sigap-home .sigap-clients-section {
	padding-top: 28px !important;
	padding-bottom: 28px !important;
	border-bottom: 1px solid var(--sg-line);
}
.sigap-home .sigap-testimonials-section h2 { text-align: center; }
.sigap-home .sigap-center { text-align: center; margin-top: 18px; }
