/* GEORBITAI – Auditoría GEO */
.gag {
	--gag-primary: #0B1A33;
	--gag-accent: #C9A45C;
	--gag-ok: #1E8E5A;
	--gag-warn: #B7791F;
	--gag-error: #C53030;
	--gag-text: #1A202C;
	--gag-muted: #5A6577;
	--gag-line: #E6E2D9;
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--gag-text);
	line-height: 1.55;
	box-sizing: border-box;
}
.gag *, .gag *::before, .gag *::after { box-sizing: border-box; }
.gag [hidden] { display: none !important; }
.gag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gag-card {
	background: #fff;
	border: 1px solid var(--gag-line);
	border-radius: 16px;
	padding: 36px;
	box-shadow: 0 18px 50px -24px rgba(11, 26, 51, .35);
}
.gag-intro {
	background: var(--gag-primary);
	background-image: radial-gradient(circle at 85% 0%, rgba(201, 164, 92, .28), transparent 55%);
	color: #fff;
	border: 0;
	text-align: center;
}
.gag-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gag-accent);
}
.gag .gag-title { font-weight: 700; color: #fff; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 10px 0 12px; }
.gag-lead { color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 auto 26px; font-size: 17px; }
.gag-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin: 14px 0 0; }
.gag-result .gag-note, .gag-loading .gag-note { color: var(--gag-muted); }

.gag-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.gag-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 54px;
	padding: 0 18px;
	font-size: 16px;
	color: var(--gag-text);
	background: #fff;
	border: 1px solid var(--gag-line);
	border-radius: 10px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.gag-input:focus { border-color: var(--gag-accent); box-shadow: 0 0 0 3px rgba(201, 164, 92, .3); }
.gag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 26px;
	font-size: 16px;
	font-weight: 700;
	color: var(--gag-primary);
	background: var(--gag-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s, filter .2s;
}
.gag-btn:hover { filter: brightness(1.07); transform: translateY(-1px); color: var(--gag-primary); }
.gag-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.gag-msg, .gag-lead-msg {
	margin: 18px auto 0;
	max-width: 620px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 15px;
	text-align: left;
	background: #FCEAEA;
	color: #8B1E1E;
}
.gag-msg.is-limit { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(201, 164, 92, .5); }
.gag-msg .gag-btn { margin-top: 12px; height: 46px; }
.gag-lead-msg.is-ok { background: #E7F5EE; color: #145C3B; }

/* Cargando */
.gag-loading { text-align: center; margin-top: 20px; }
.gag-spinner {
	width: 56px; height: 56px; margin: 0 auto 16px;
	border: 4px solid var(--gag-line);
	border-top-color: var(--gag-accent);
	border-radius: 50%;
	animation: gag-spin 1s linear infinite;
}
.gag-loading-step { font-weight: 700; font-size: 17px; margin: 0; color: var(--gag-primary); }
@keyframes gag-spin { to { transform: rotate(360deg); } }

/* Resultado */
.gag-result { margin-top: 20px; }
.gag-result-head { display: flex; align-items: center; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--gag-line); }
.gag-gauge { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.gag-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gag-gauge circle { fill: none; stroke-width: 10; }
.gag-gauge-bg { stroke: #EFECE5; }
.gag-gauge-fg { stroke: var(--gag-accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s ease, stroke .3s; }
.gag-gauge-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 48px; }
.gag-score { font-size: 46px; font-weight: 800; line-height: 1; color: var(--gag-primary); }
.gag-gauge-num small { font-size: 15px; color: var(--gag-muted); margin-left: 2px; }
.gag .gag-level { font-weight: 700; line-height: 1.25; font-size: 24px; margin: 4px 0 4px; color: var(--gag-primary); }
.gag-domain { margin: 0; color: var(--gag-muted); word-break: break-all; }
.gag-counts { margin: 8px 0 0; font-size: 14px; }
.gag-counts b { font-weight: 700; }
.gag[data-level="good"] .gag-gauge-fg { stroke: var(--gag-ok); }
.gag[data-level="fair"] .gag-gauge-fg { stroke: var(--gag-warn); }
.gag[data-level="poor"] .gag-gauge-fg { stroke: var(--gag-error); }

.gag-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; padding: 26px 0; border-bottom: 1px solid var(--gag-line); }
.gag-block-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.gag-dot { width: 12px; height: 12px; border-radius: 50%; }
.gag-dot.good { background: var(--gag-ok); }
.gag-dot.fair { background: var(--gag-warn); }
.gag-dot.poor { background: var(--gag-error); }
.gag-bar { grid-column: 2 / 4; height: 6px; background: #EFECE5; border-radius: 4px; overflow: hidden; margin-top: -4px; }
.gag-bar span { display: block; height: 100%; width: 0; transition: width 1s ease; }
.gag-bar span.good { background: var(--gag-ok); }
.gag-bar span.fair { background: var(--gag-warn); }
.gag-bar span.poor { background: var(--gag-error); }
.gag-block-score { font-weight: 700; color: var(--gag-primary); }

.gag .gag-subtitle { font-weight: 700; line-height: 1.3; font-size: 19px; color: var(--gag-primary); margin: 26px 0 12px; }
.gag-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gag-issues li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 10px; background: #FAF9F6; border-left: 4px solid var(--gag-error); }
.gag-issues li.warn { border-left-color: var(--gag-warn); }
.gag-issues strong { display: block; color: var(--gag-primary); margin-bottom: 2px; }
.gag-issues span { display: block; color: var(--gag-muted); font-size: 15px; line-height: 1.5; }
.gag-issues strong { font-size: 16px; line-height: 1.35; }
.gag-issues .gag-empty { border-left-color: var(--gag-ok); }

.gag-lead-box { margin-top: 30px; padding: 26px; border-radius: 14px; background: #F8F6F1; border: 1px solid var(--gag-line); }
.gag-lead-box .gag-subtitle { margin-top: 0; }
.gag-lead-text { margin: 0 0 16px; color: var(--gag-muted); font-size: 15px; line-height: 1.55; }
.gag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gag-hp { position: absolute; left: -9999px; }
.gag-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gag-muted); margin: 14px 0 16px; cursor: pointer; }
.gag-check input { margin-top: 3px; flex: 0 0 auto; }
.gag-check-optional { margin-top: -6px; }
.gag-retention { font-size: 12px; color: var(--gag-muted); margin: -6px 0 14px; }
.gag-disclaimer { font-size: 12px; line-height: 1.45; color: var(--gag-muted); margin: 8px 0 0; max-width: 460px; }
.gag-turnstile { display: flex; justify-content: center; margin-top: 14px; min-height: 0; }
.gag-check a { color: var(--gag-primary); text-decoration: underline; }
.gag-lead-form .gag-btn { width: 100%; }
.gag-lead-msg { max-width: none; margin: 14px 0 0; }

.gag-cta { margin-top: 26px; padding: 26px; border-radius: 14px; background: var(--gag-primary); color: rgba(255, 255, 255, .88); text-align: center; }
.gag-cta p { margin: 0 auto 18px; max-width: 620px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.gag-cta strong { color: #fff; }

@media (max-width: 640px) {
	.gag-card { padding: 24px 18px; border-radius: 12px; }
	.gag-form { flex-direction: column; }
	.gag-btn { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: 12px 18px; }
	.gag-result-head { flex-direction: column; text-align: center; gap: 14px; }
	.gag-blocks, .gag-grid { grid-template-columns: 1fr; }
	.gag-lead-box, .gag-cta { padding: 20px 16px; }
}
