/* Guías descargables (CG_Form_Guia) — modal en verde Common Ground (personas), letra grande y botones claros. */
.cgg-abrir { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; padding: .5rem 1.1rem; border: 2px solid #2eb98f; border-radius: 99px; background: #e6f7f0; color: #0f3d30; font-size: .98rem; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; }
.cgg-abrir:hover { background: #2eb98f; }
.cgg-abrir:focus-visible { outline: 3px solid #f2b33d; outline-offset: 3px; }
.cgg-overlay { --v: #2eb98f; --vt: #17795b; --vs: #e6f7f0; --ink: #0f3d30; position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 40, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cgg-overlay[hidden], .cgg-overlay [hidden] { display: none !important; }
body.cgg-abierto { overflow: hidden; }
.cgg-modal { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 100%; max-width: 960px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: hidden; border-radius: 22px; background: #fff; color: #1f1f1f; font-size: 1.05rem; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); animation: cgg-entra .25s ease-out; }
@keyframes cgg-entra { from { opacity: 0; transform: translateY(12px); } }
.cgg-cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--vs); color: var(--vt); font-size: 1.05rem; cursor: pointer; }
.cgg-portada { padding: 32px 26px; background: linear-gradient(170deg, #2eb98f 0%, #23a07b 100%); color: var(--ink); overflow-y: auto; }
.cgg-portada-k { margin: 0 0 .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.cgg-portada-t { margin: 0 0 1.4rem; font-size: 1.55rem; font-weight: 800; line-height: 1.15; }
.cgg-portada ul { margin: 0 !important; padding: 0; list-style: none; }
.cgg-portada li { position: relative; margin: 0 0 .7rem !important; padding-left: 1.8rem; font-weight: 600; line-height: 1.4; }
.cgg-portada li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(255, 255, 255, .55); font-size: .75rem; font-weight: 900; }
.cgg-cuerpo { min-height: 0; padding: 30px 32px 26px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.cgg-h { margin: 0 44px .5rem 0; font-size: 1.8rem; line-height: 1.1; letter-spacing: -.02em; color: #1f1f1f; }
.cgg-h em { color: var(--vt); font-style: italic; }
.cgg-lede { margin: 0 0 1.2rem; color: #444; line-height: 1.55; }
.cgg-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cgg-campo { display: block; margin: 0 0 14px; }
.cgg-campo > span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: #444; }
.cgg-campo small { font-weight: 400; color: #888; }
.cgg-campo input { width: 100%; height: 46px; margin: 0; padding: 0 13px; border: 1.5px solid #d3e8de; border-radius: 10px; background: #fff; box-shadow: none; font-size: 1rem; color: #1f1f1f; }
.cgg-campo input:focus { border-color: var(--v); box-shadow: 0 0 0 3px rgba(46, 185, 143, .2); outline: 0; }
.cgg-campo input.is-error { border-color: #b3261e; }
.cgg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; border-radius: 12px; }
.cgg-chips.is-error { box-shadow: 0 0 0 2px rgba(179, 38, 30, .5); }
.cgg-chips button { min-height: 0; margin: 0; padding: 8px 14px; border: 1.5px solid #d3e8de; border-radius: 99px; background: #fff; color: #333; font-size: .92rem; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; }
.cgg-chips button:hover { border-color: var(--v); }
.cgg-chips button.is-on { border-color: var(--v); background: var(--v); color: var(--ink); }
.cgg-legal { display: grid; gap: 6px; margin: 4px 0 12px; }
.cgg-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 7px 9px; border-radius: 10px; font-size: .9rem; font-weight: 400; line-height: 1.45; color: #333; cursor: pointer; }
.cgg-check.is-error { background: #fbeceb; }
.cgg-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #17795b; }
.cgg-check a { color: var(--vt); font-weight: 700; }
.cgg-check--opc { color: #666; }
.cgg-error { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: #fbeceb; color: #b3261e; font-size: .9rem; font-weight: 600; }
.cgg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 0; margin: 0; padding: 14px 22px; border: 0; border-radius: 99px; background: var(--v); color: var(--ink) !important; font-size: 1.05rem; font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(46, 185, 143, .9); }
.cgg-btn:hover { background: #27a37e; }
.cgg-btn[disabled] { opacity: .6; cursor: wait; }
.cgg-btn.is-cargando::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(15, 61, 48, .3); border-top-color: var(--ink); border-radius: 50%; animation: cgg-gira .7s linear infinite; }
@keyframes cgg-gira { to { transform: rotate(360deg); } }
.cgg-seguro { margin: 10px 0 0; font-size: .78rem; color: #777; text-align: center; }
.cgg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cgg-listo { padding: 20px 0; text-align: center; outline: 0; }
.cgg-listo-sello { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 12px; border-radius: 50%; background: var(--v); color: var(--ink); font-size: 1.9rem; box-shadow: 0 0 0 8px var(--vs); }
.cgg-listo h3 { margin: 0 0 8px; font-size: 1.5rem; color: #1f1f1f; }
.cgg-listo p { margin: 0 auto 18px; max-width: 28em; color: #444; }
.cgg-listo .cgg-btn { width: auto; }
.cgg-listo-nota { margin-top: 14px !important; font-size: .88rem; color: #666 !important; }
@media (max-width: 849px) {
	.cgg-overlay { align-items: stretch; padding: 0; }
	.cgg-modal { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: none; height: 100%; border-radius: 0; }
	.cgg-portada { padding: 18px 60px 16px 18px; } .cgg-portada ul { display: none; } .cgg-portada-t { margin: 0; font-size: 1.2rem; }
	.cgg-cuerpo { padding: 22px 18px; } .cgg-fila { grid-template-columns: 1fr; } .cgg-h { margin-right: 0; font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .cgg-modal { animation: none; } }


/* ===== Guía v1.1: autorización primero, datos bloqueados, newsletter con catálogo, pasos visibles ===== */
.cgg-pasos { display: flex; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: none; }
.cgg-pasos li { flex: 1; display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 0 8px; border-bottom: 3px solid #e3ece8; font-size: .76rem; font-weight: 700; color: #8aa59c; transition: border-color .25s ease, color .25s ease; }
.cgg-pasos li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e3ece8; font-size: .72rem; color: #5c6f69; }
.cgg-pasos li.is-on { border-bottom-color: #2eb98f; color: #0f3d30; }
.cgg-pasos li.is-on span { background: #2eb98f; color: #fff; }
.cgg-pasos li.is-done { border-bottom-color: #a8dcc9; color: #17795b; }
.cgg-pasos li.is-done span { background: #a8dcc9; color: #0f3d30; }
.cgg-bloque { margin: 0 0 14px; }
.cgg-bloque-t { display: block; float: none; width: 100%; margin: 0 0 8px; padding: 0; border: 0; font-size: .95rem; font-weight: 800; letter-spacing: normal; text-transform: none; color: #0f3d30; }
.cgg-bloque-t small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: #6b7c77; }
.cgg-bloque > .cgg-legal { margin: 0; padding: 10px; border-radius: 14px; background: #f1faf6; box-shadow: inset 0 0 0 1px #d3e8de; }
.cgg-nl { margin-top: 2px; padding-top: 6px; border-top: 1px dashed #cfe5db; }
.cgg-nl .cgg-check--opc { color: #3d5a51; }
fieldset.cgg-temas { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px 32px; padding: 0; border: 0; }
.cgg-temas legend { width: 100%; margin: 0 0 6px; padding: 0; font-size: .8rem; font-weight: 700; color: #0f3d30; }
.cgg-tema { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1.5px solid #d3e8de; border-radius: 99px; background: #fff; font-size: .8rem; font-weight: 600; color: #0f3d30; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.cgg-tema input { position: absolute; opacity: 0; pointer-events: none; }
.cgg-tema::before { content: ""; width: 12px; height: 12px; border: 2px solid #8aa59c; border-radius: 3px; }
.cgg-tema:has(input:checked) { border-color: #2eb98f; background: #e6f7f0; }
.cgg-tema:has(input:checked)::before { border-color: #17795b; background: #17795b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 90%; }
.cgg-tema:has(input:focus-visible) { outline: 3px solid rgba(46, 185, 143, .4); outline-offset: 2px; }
fieldset.cgg-grupo { margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.cgg-bloque--datos { padding-top: 12px; border-top: 2px solid #0f3d30; }
.cgg-bloque--datos.is-bloqueado fieldset { opacity: .42; filter: grayscale(.4); }
.cgg-bloque--datos fieldset[disabled] * { cursor: not-allowed; }
.cgg-candado { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: #fcfcf2; box-shadow: inset 0 0 0 1px #d3e8de; font-size: .84rem; font-weight: 700; color: #17795b; }
.cgg-grupo--momento { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid #e3ece8 !important; }
.cgg-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (max-width: 600px) { fieldset.cgg-temas { margin-left: 0; } .cgg-pasos li { font-size: .68rem; } }
.cgg-temas legend { letter-spacing: normal !important; text-transform: none !important; }
