/* ==========================================================================
   Ágora · Solicitud de contacto calificada  [agora_contacto]
   Estilos aislados bajo .agc para que el tema no los altere.
   ========================================================================== */
.agc {
	--n: #0A1A3A; --b: #0B6EFD; --s: #22C1FF; --m: #F3F6FB; --l: #DCE4F2;
	--i2: #4A5878; --i3: #7D89A6; --err: #E0283A;
	--sh: 0 24px 60px -30px rgba(10, 26, 58, .45);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--n); background: #fff; padding: 104px 0; line-height: 1.55;
	-webkit-font-smoothing: antialiased; scroll-margin-top: 90px;
}
.agc--grey { background: var(--m); }
.agc *, .agc *::before, .agc *::after { box-sizing: border-box; }
.agc :where(h2, h3, p, ul, ol, li, fieldset, legend, figure) { margin: 0; padding: 0; }
.agc :where(ul, ol) { list-style: none; }
.agc svg { display: block; }
.agc a { text-decoration: none; }

.agc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }

/* ---------- Columna lateral ---------- */
.agc-side { position: sticky; top: 110px; }
.agc-pill { display: inline-flex; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: var(--b); color: #fff; }
.agc-h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; color: var(--n); }
.agc-h2 span { display: block; color: var(--b); }
.agc-lead { font-size: 17px; color: var(--i2); margin-top: 16px; }
.agc-why, .agc-direct { margin-top: 28px; }
.agc-why__t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--i3); margin-bottom: 12px; }
.agc-why li { display: flex; gap: 10px; font-size: 15px; color: var(--i2); margin-top: 10px; }
.agc-why li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--b); }
.agc-direct { display: grid; gap: 10px; }
.agc-direct .agc-why__t { margin-bottom: 2px; }
.agc-direct__i { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--m); color: var(--n) !important; font-weight: 600; font-size: 15px; transition: background .15s ease; }
.agc--grey .agc-direct__i { background: #fff; }
.agc-direct__i:hover { background: #E8F0FD; }
.agc-direct__i svg { width: 22px; height: 22px; color: var(--b); flex: none; }
.agc-direct__i small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); }
.agc-privacy { display: flex; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--i3); }
.agc-privacy svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- Tarjeta del formulario ---------- */
.agc-card { background: #fff; border-radius: 26px; border: 1px solid rgba(220, 228, 242, .9); box-shadow: var(--sh); padding: 34px 36px 32px; min-width: 0; }
.agc-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.agc-prog li { font-size: 12px; font-weight: 600; color: var(--i3); line-height: 1.3; }
.agc-prog i { display: block; height: 6px; border-radius: 3px; background: #EAEFF7; margin-bottom: 8px; transition: background .25s ease; }
.agc-prog li.is-on i, .agc-prog li.is-done i { background: var(--c); }
.agc-prog li.is-on { color: var(--n); }
.agc-step__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b); }
.agc-step h3 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 4px 0 6px; color: var(--n); outline: none; }

.agc-field { display: block; margin-top: 22px; border: 0; min-width: 0; }
.agc-field > label, .agc-field > legend { display: block; font-size: 15px; font-weight: 600; color: var(--n); margin-bottom: 8px; padding: 0; }
.agc-opt { font-weight: 400; color: var(--i3); font-size: 13px; }
.agc input[type="text"], .agc input[type="email"], .agc input[type="tel"], .agc textarea, .agc select {
	display: block; width: 100%; font: inherit; font-size: 15.5px; color: var(--n); background: #fff;
	border: 1.5px solid var(--l); border-radius: 14px; padding: 13px 16px; margin: 0; min-height: 50px;
	box-shadow: none; outline: none; transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.agc textarea { min-height: 96px; resize: vertical; }
.agc input::placeholder, .agc textarea::placeholder { color: #A5B0C7; }
.agc input:focus, .agc textarea:focus, .agc select:focus { border-color: var(--b); box-shadow: 0 0 0 4px rgba(11, 110, 253, .14); }
.agc-sel { position: relative; }
.agc-sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--i3); border-bottom: 2px solid var(--i3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.agc select { padding-right: 42px; cursor: pointer; }
.agc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Opciones tipo tarjeta */
.agc-opts { display: grid; gap: 10px; }
.agc-opts--2 { grid-template-columns: 1fr 1fr; }
.agc-opts--3 { grid-template-columns: repeat(3, 1fr); }
.agc-o { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--l); background: #fff; cursor: pointer; font-size: 14.5px; line-height: 1.35; color: var(--n); transition: border-color .15s ease, background .15s ease; margin: 0; }
.agc-o:hover { border-color: #A9C6F7; }
.agc-o input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.agc-o__b { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B9C5DB; flex: none; position: relative; transition: border-color .15s ease; }
.agc-o__b::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--b); transform: scale(0); transition: transform .15s ease; }
.agc-o:has(input:checked) { border-color: var(--b); background: #EEF5FF; }
.agc-o.is-checked { border-color: var(--b); background: #EEF5FF; }
.agc-o input:checked + .agc-o__b { border-color: var(--b); }
.agc-o input:checked + .agc-o__b::after { transform: scale(1); }
.agc-o input:focus-visible + .agc-o__b { box-shadow: 0 0 0 4px rgba(11, 110, 253, .2); }

.agc-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--i3); margin-top: 10px; }
.agc-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* Casilla de autorización */
.agc-consent { display: grid !important; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px !important; font-weight: 400 !important; color: var(--i2) !important; cursor: pointer; padding: 16px; border-radius: 14px; background: var(--m); }
.agc-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agc-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #B9C5DB; background: #fff; display: grid; place-items: center; color: #fff; transition: all .15s ease; }
.agc-box svg { width: 14px; height: 14px; opacity: 0; }
.agc-consent input:checked + .agc-box { background: var(--b); border-color: var(--b); }
.agc-consent input:checked + .agc-box svg { opacity: 1; }
.agc-consent input:focus-visible + .agc-box { box-shadow: 0 0 0 4px rgba(11, 110, 253, .2); }
.agc-consent a { color: var(--b) !important; font-weight: 600; }
.agc-consent .agc-err { grid-column: 1 / -1; }

/* Errores */
.agc-err { font-size: 13px; color: var(--err); margin-top: 6px; min-height: 0; }
.agc-err:empty { display: none; }
.agc-field.is-err input, .agc-field.is-err textarea, .agc-field.is-err select, .agc-field.is-err .agc-o { border-color: #F2A3AC; }
.agc-field.is-err .agc-box { border-color: var(--err); }
.agc-form-err { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: #FFF1F2; color: #A61B2B; font-size: 14px; }
.agc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Navegación */
.agc-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #EEF2F8; }
.agc-nav [data-agc="back"]:not([hidden]) { margin-right: auto; }
.agc-btn, .agc button.agc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 28px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; color: #fff !important; background: linear-gradient(90deg, var(--b), var(--s)); border: 0; box-shadow: 0 12px 30px -12px rgba(11, 110, 253, .7); cursor: pointer; text-transform: none; letter-spacing: 0; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.agc-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(11, 110, 253, .8); }
.agc-btn svg { width: 18px; height: 18px; }
.agc-btn--ghost, .agc button.agc-btn--ghost { background: transparent; color: var(--n) !important; box-shadow: inset 0 0 0 1.5px var(--l); }
.agc-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--b); }
.agc-btn--wa, .agc a.agc-btn--wa { background: #13A94B; box-shadow: 0 12px 30px -12px rgba(19, 169, 75, .7); }
.agc-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.agc [hidden] { display: none !important; }

/* ---------- Resultado ---------- */
.agc-result { outline: none; }
.agc-res__k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0E8A3D; background: #E7F7EE; padding: 6px 12px; border-radius: 999px; }
.agc-res__k svg { width: 15px; height: 15px; }
.agc-result h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 700; margin-top: 16px; color: var(--n); }
.agc-result p { font-size: 16px; color: var(--i2); margin-top: 12px; }
.agc-res__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.agc-res__rail { display: flex; gap: 6px; margin-top: 26px; }
.agc-res__rail i { width: 9px; height: 9px; border-radius: 50%; }
.agc-res__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.agc-res__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--m); color: var(--n) !important; border: 1.5px solid transparent; transition: border-color .15s ease; }
.agc-res__card:hover { border-color: var(--b); }
.agc-res__card svg { width: 24px; height: 24px; color: var(--b); }
.agc-res__card b { font-size: 17px; margin-top: 6px; }
.agc-res__card span { font-size: 14px; color: var(--i2); }
.agc-res__card em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--b); margin-top: 6px; }
.agc-noscript { padding: 20px; border-radius: 14px; background: var(--m); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.agc-wrap { grid-template-columns: 1fr; gap: 40px; }
	.agc-side { position: static; }
	.agc-why, .agc-direct { display: none; }
	.agc-privacy { margin-top: 14px; }
}
@media (max-width: 640px) {
	.agc { padding: 64px 0; }
	.agc-wrap { padding: 0 16px; }
	.agc-card { padding: 24px 18px 22px; border-radius: 22px; }
	.agc-prog span { display: none; }
	.agc-prog { margin-bottom: 20px; }
	.agc-opts--2, .agc-opts--3, .agc-row, .agc-res__cards { grid-template-columns: 1fr; }
	.agc-step h3 { font-size: 21px; }
	.agc-nav { gap: 10px; }
	.agc-nav .agc-btn { flex: 1; padding: 14px 18px; }
	.agc-nav [data-agc="back"]:not([hidden]) { flex: 0 0 auto; margin-right: 0; }
	.agc-res__btns .agc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .agc * { transition: none !important; } }
