/* Camino Simbólico del Clan: la hoja oficial como mapa con paradas. Colores de la propia hoja: mostaza, negro, turquesa, rojo. */
.cc-panel { container-type: inline-size; container-name: cc; --cc-negro: #231F20; --cc-mostaza: #EDB12F; --cc-turq: #16A6B6; --cc-rojo: #C8102E; --cc-papel: #FBF7EE; margin-bottom: 24px; color: #231F20; font-size: 15px; line-height: 1.5; }
.cc-cab { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px 18px 0 0; background: var(--cc-mostaza); color: var(--cc-negro); }
.cc-h3 { margin: 0; font-size: 20px; font-weight: 800; }
.cc-cab-p { margin: 2px 0 0; font-size: 14px; }
.cc-barra { height: 10px; border-radius: 999px; background: rgba(35,31,32,.2); overflow: hidden; }
.cc-barra span { display: block; height: 100%; background: var(--cc-negro); border-radius: 999px; transition: width .5s ease; }
.cc-aviso { margin: 0; padding: 10px 14px; background: #FDECEC; color: #7A0C1E; }
.cc-mapa { position: relative; background: #fff; border: 1px solid #E8DFCB; border-top: 0; line-height: 0; }
.cc-hoja { display: block; width: 100%; height: auto; }
.cc-pin { position: absolute; min-width: 0; min-height: 0; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: #6B6460; color: #fff; font: 800 14px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; padding: 0; }
.cc-pin::after { content: ""; position: absolute; inset: -8px; }   /* agranda el área táctil a 44 px+ */
.cc-pin.cc-hecha { background: #0F7A3E; }
.cc-pin.cc-sigue { background: var(--cc-rojo); animation: cc-late 1.8s ease-in-out infinite; }
.cc-pin.cc-sel { outline: 3px solid var(--cc-negro); outline-offset: 2px; z-index: 2; }
.cc-pin:focus-visible, .cc-chip:focus-visible, .cc-btn:focus-visible, .cc-senal:focus-visible, .cc-in:focus-visible { outline: 3px solid var(--cc-turq); outline-offset: 2px; }
@keyframes cc-late { 0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 0 rgba(200,16,46,.55); } 50% { box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 10px rgba(200,16,46,0); } }
@media (prefers-reduced-motion: reduce) { .cc-pin.cc-sigue { animation: none; } .cc-barra span { transition: none; } }
.cc-tira { list-style: none; margin: 0; padding: 12px; display: flex; gap: 8px; overflow-x: auto; background: var(--cc-papel); border: 1px solid #E8DFCB; border-top: 0; }
.cc-tira li { flex: 0 0 auto; }
.cc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid #D9CDB3; background: #fff; cursor: pointer; font: 600 13px/1.2 inherit; color: var(--cc-negro); white-space: nowrap; }
.cc-chip span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #6B6460; color: #fff; font-weight: 800; font-size: 13px; }
.cc-chip.cc-hecha span { background: #0F7A3E; }
.cc-chip.cc-sigue span { background: var(--cc-rojo); }
.cc-chip.cc-sel { background: var(--cc-negro); color: #fff; border-color: var(--cc-negro); }
.cc-det { padding: 16px 18px; background: #fff; border: 1px solid #E8DFCB; border-top: 0; }
.cc-h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc-h4 i { color: var(--cc-turq); }
.cc-est { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.cc-est.cc-hecha { background: #D6F2E0; color: #0B5A2D; }
.cc-est.cc-falta { background: #EEE9DF; color: #4A4340; }
.cc-p { margin: 0 0 10px; color: #3A3432; }
.cc-rot { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4A4340; }
.cc-cita { margin: 0 0 10px; padding: 10px 14px; border-left: 5px solid var(--cc-mostaza); background: var(--cc-papel); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-vacio { margin: 0 0 10px; padding: 10px 14px; border: 2px dashed #E0D5BE; border-radius: 12px; color: #4A4340; background: var(--cc-papel); }
.cc-ok { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #E9F7EE; color: #0B5A2D; }
.cc-tenue { font-size: 13px; color: #4A4340; }
.cc-dl { margin: 0 0 6px; display: grid; gap: 2px; }
.cc-dl dt { font-weight: 800; font-size: 13px; margin-top: 6px; }
.cc-dl dd { margin: 0; overflow-wrap: anywhere; }
.cc-lista { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.cc-campos, .cc-req { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.cc-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-campos li, .cc-req li { padding: 8px 12px; border-radius: 12px; background: var(--cc-papel); border: 1px solid #E8DFCB; color: #3A3432; }
.cc-campos li i, .cc-req li > i { color: #8A8480; margin-right: 6px; }
.cc-campos li.cc-on, .cc-req li.cc-on { background: #E9F7EE; border-color: #9FD6B4; color: #0B5A2D; }
.cc-campos li.cc-on i, .cc-req li.cc-on > i, .cc-req li.cc-on .cc-senal i { color: #0F7A3E; }
.cc-senal { display: flex; gap: 8px; align-items: center; width: 100%; min-height: 44px; margin: -8px -12px; padding: 8px 12px; box-sizing: content-box; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.cc-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.cc-lab { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.cc-crece { flex: 1 1 200px; }
.cc-in { min-height: 44px; padding: 8px 10px; border: 1px solid #CFC5AE; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; width: 100%; box-sizing: border-box; }
.cc-btn { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--cc-negro); color: #fff; font-weight: 800; cursor: pointer; }
.cc-btn:hover { background: #3A3432; }
.cc-btn2 { background: #fff; color: var(--cc-negro); border: 2px solid var(--cc-negro); }
.cc-btn2:hover { background: var(--cc-papel); }
.cc-pie { margin: 0; padding: 10px 18px; font-size: 12px; color: #4A4340; background: var(--cc-papel); border: 1px solid #E8DFCB; border-top: 0; border-radius: 0 0 18px 18px; }
@container cc (max-width: 480px) { .cc-pin { width: 24px; height: 24px; font-size: 11px; border-width: 2px; } .cc-campos { grid-template-columns: 1fr; } }

/* Pestañas del panel del Clan (Camino · Proyecto de Vida · Proyectos de intervención) */
.cc-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 14px;padding-bottom:10px;border-bottom:1px solid #e5e7eb}
.cc-tab{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#374151;font-weight:700;font-size:.85rem;cursor:pointer}
.cc-tab:hover{background:#f9fafb}
.cc-tab[aria-selected="true"]{background:#b91c1c;border-color:#b91c1c;color:#fff}
.cc-tab:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.cc-cuerpo-form{margin-top:4px}
@container (max-width:520px){.cc-cuerpo-form [style*="grid-template-columns"]{grid-template-columns:1fr!important}}
