/* Paso 1 · Empecemos con fichas de color (opción C de propuestas/paso1.html, elegida el 2026-10-13).
   Se carga desde events/edit.php y solo toca lo que está dentro de .start-c. */

.start-c{gap:20px}
.start-c .start-question{margin:0 0 4px;font-size:1.05rem;font-weight:900;color:var(--dark2)}

/* Tipos de evento: una ficha de color por tipo, como Explora y el paso 2. */
.start-c .start-type-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.start-c .start-type>span{position:relative;justify-items:start;align-content:space-between;gap:10px;min-height:86px;padding:11px 10px;border:0;border-radius:16px;background:var(--type-color,#7C3CFF);color:#fff;text-align:left;transition:transform .12s,opacity .15s,box-shadow .15s}
.start-c .start-type>span i{font-size:1.3rem;color:#fff}
.start-c .start-type>span b{font-size:.76rem;font-weight:850;line-height:1.15}
.start-c .start-type:hover>span{transform:translateY(-2px);border:0}
.start-c .start-type-ok{position:absolute;top:8px;right:8px;display:none;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff;font-style:normal}
.start-c .start-type-ok i{font-size:.8rem!important;color:var(--type-color,#7C3CFF)!important}
/* El elegido queda con borde y ✓; los demás mantienen su color pleno (el usuario pidió quitar el apagado, 2026-10-14). */
.start-c .start-type input:checked+span,
.start-c .start-type-grid[data-event-group-current="colegio"] .start-type input:checked+span{opacity:1;border:0;background:var(--type-color,#7C3CFF);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--type-color,#7C3CFF),0 10px 20px rgba(20,17,42,.16)}
.start-c .start-type input:checked+span .start-type-ok{display:grid}
/* 2026-10-16: con un tipo marcado, los demás se oscurecen un poco (sin desteñirse) para que el elegido resalte. */
.start-c .start-type-grid:has(input:checked) .start-type input:not(:checked)+span,
.start-c .start-type-grid:has(input:checked) .start-type-switch>span{filter:brightness(.55) saturate(.85);transition:transform .12s,filter .15s,box-shadow .15s}
.start-c .start-type-grid:has(input:checked) .start-type:hover input:not(:checked)+span,
.start-c .start-type-grid:has(input:checked) .start-type-switch:hover>span{filter:brightness(.85)}
/* El elegido, un poco más brillante y apenas más grande (pedido 2026-10-16). */
.start-c .start-type input:checked+span{filter:brightness(1.12) saturate(1.15);transform:scale(1.03);transition:transform .12s,filter .15s,box-shadow .15s}
.start-c .start-type input:focus-visible+span{outline:3px solid rgba(124,60,255,.35);outline-offset:3px}
.start-c .start-type-grid[data-event-group-current="colegio"] .start-type>span i{color:#fff}
.start-c .start-type-switch>span{border:2px dashed rgba(255,255,255,.65)!important;background:var(--type-color,#1E5BFF)}
.start-c .start-type-switch>span i{color:#fff}
.start-c .start-swipe{display:none;color:var(--muted);font-size:.72rem;font-weight:700}
.start-c .start-group-back{justify-self:start}

/* Nombre del evento: "¿De quién es?" al lado, no encima. */
.start-c .start-name{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.start-c .start-name .start-honoree{margin:0;padding:0;background:none;gap:7px}
.start-c .start-name .start-honoree label{color:var(--dark2)}
.start-c .start-name .start-honoree[hidden]+.start-name-field{grid-column:1/-1}
.start-c .start-name-field{display:grid;gap:7px;min-width:0}
.start-c .start-name-field label{margin:0}

/* Decidamos juntos: interruptor de una línea. */
.start-c .start-vote{padding:12px 14px;border:0;border-radius:14px;background:#F7F3FF}
.start-c .start-vote.has-vote{padding:0;background:none}
/* La columna no puede crecer con el contenido: la fila deslizable de panoramas estiraba todo el cuadro en el celular (13-oct). */
.start-c .start-vote,.start-c .start-vote-panel,.start-c .start-vote-box{grid-template-columns:minmax(0,1fr)}
.start-c .start-vote>*,.start-c .start-vote-panel>*,.start-c .start-vote-box>*{min-width:0}
.start-c .start-vote-switch{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0;cursor:pointer}
.start-c .start-vote-switch input{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:44px!important;height:26px!important;min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important;margin:0;border-radius:999px;background:#DAD3EA;cursor:pointer;transition:background .15s}
.start-c .start-vote-switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:left .15s}
.start-c .start-vote-switch input:checked{background:#7C3CFF}
.start-c .start-vote-switch input:checked::after{left:21px}
.start-c .start-vote-switch input:focus-visible{outline:3px solid rgba(124,60,255,.3);outline-offset:2px}
.start-c .start-vote-q b{font-size:.92rem}
.start-c .start-vote-q small{font-size:.76rem;font-weight:600}
.start-vote-yesno[hidden]{display:none!important}

/* Dónde y Cuándo: dos tarjetas con cabecera de color. */
.start-c .start-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.start-c .start-card{min-width:0;border:1px solid #ECE8F5;border-radius:18px;background:#fff}
.start-c .start-card-head{display:flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border-radius:17px 17px 0 0;background:var(--card-color);color:#fff;font-size:.92rem;font-weight:900}
.start-c .start-card.is-where{--card-color:#1E9BFF}
.start-c .start-card.is-when{--card-color:#0CA678}
.start-c .start-card-body{display:grid;gap:12px;padding:14px}
.start-c .start-venue{display:grid;gap:7px}
.start-c .start-venue label{margin:0}
.start-c .start-venue .start-chips{margin:0}
/* 2026-11-07 (maquetas/paso1-donde-lleno.html): comuna ya llena con «Cambiar», y «+ Dirección» junto a los lugares. */
.start-c .start-place-filled{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 6px 0 14px;border:2px solid #9FD3FF;border-radius:14px;background:#EEF7FF}
.start-c .start-place-filled[hidden],.start-c .start-place-search[hidden],.start-c .start-place-src[hidden]{display:none}
.start-c .start-place-filled .bi-geo-alt-fill{color:#1E9BFF}
.start-c .start-place-filled strong{flex:1;min-width:0;font-size:.95rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.start-c .start-place-change{padding:8px;border:0;border-radius:10px;background:none;color:#6831d3;font:inherit;font-size:.8rem;font-weight:850;cursor:pointer}
.start-c .start-place-change:hover{background:#E4DBFF}
.start-c .start-place-change:disabled{display:none}
.start-c .start-place-src{display:flex;align-items:center;gap:6px;margin-top:-2px;color:var(--muted);font-size:.74rem;font-weight:600}
.start-c .start-place-src.is-warn{color:#B25E00}
.start-c .start-chip.is-add{border-style:dashed;border-color:#C9B6F7;color:#6831d3}
.start-c .start-chip.is-add.is-open{border-style:solid;background:#F3EEFF}
.start-c .start-address{margin-top:4px}
.start-c .start-card .start-when{grid-template-columns:1.2fr 1fr;gap:10px}
.start-c .start-card .start-date-hint[hidden]{display:none}

/* Opcional: una fila de "+" y cada campo se abre debajo. */
.start-c .start-optional{gap:10px}
.start-c .start-optional-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.start-c .start-optional-row>span{margin-right:2px;color:var(--muted);font-size:.78rem;font-weight:800}
.start-c .start-optional-pill{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 13px;border:1.5px dashed #D3C7EF;border-radius:999px;background:#fff;color:#6831d3;font:inherit;font-size:.78rem;font-weight:850;cursor:pointer}
.start-c .start-optional-pill:hover{border-color:#a98cf3}
.start-c .start-optional-pill.is-open{border-style:solid;border-color:#c9b6f7;background:#F3EEFF}
.start-c .start-optional-pill .bi-chevron-down{font-size:.7rem;transition:transform .15s}
.start-c .start-optional-pill.is-open .bi-chevron-down{transform:rotate(180deg)}
.start-c .start-optional-panel{display:grid;gap:7px;min-width:0}
.start-c .start-optional-panel[hidden]{display:none}
.start-c .start-optional-panel label{margin:0}
.start-c .start-optional-panel.is-short{max-width:220px}
.start-c .start-optional-panel .format-choice-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}

@media(max-width:720px){
  .start-c{gap:16px}
  /* En el celular las fichas van en 2 filas que se deslizan hacia el lado. */
  .start-c .start-type-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:none;grid-auto-columns:98px;gap:8px;overflow-x:auto;margin:0 -26px;padding:6px 26px 8px;scroll-padding-left:26px;scroll-snap-type:x proximity;scrollbar-width:none}
  .start-c .start-type-grid::-webkit-scrollbar{display:none}
  .start-c .start-type{scroll-snap-align:start}
  .start-c .start-type>span{min-height:80px}
  .start-c .start-swipe{display:block}
  .start-c .start-name{grid-template-columns:1fr}
  .start-c .start-vote-switch{flex-direction:row;align-items:center}
  .start-c .start-cards{grid-template-columns:1fr}
  .start-c .start-card .start-when>div:first-child{grid-column:auto}
  .start-c .start-card .start-when{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  .start-c .start-card .start-when>div{min-width:0}
  .start-c .start-card .start-when input{width:100%;min-width:0;padding-left:10px!important;padding-right:8px!important}
  .start-c .start-card .start-when{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
  .start-c .start-optional-row{gap:6px}
  .start-c .start-optional-row>span{flex-basis:100%}
  .start-c .start-optional-pill{padding:6px 11px;font-size:.74rem}
}

/* Paso 1 con compra pagada (2026-10-13): fecha, hora y lugar fijos, marcados "de tu compra". */
.start-fixed-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #e7f8ef; color: #14804a; font-size: .72rem; font-weight: 800; }
.start-event-form .is-purchase-fixed input:disabled { background: #f6f4fb; color: #3b2470; cursor: not-allowed; }

/* 2026-10-25: sin "Decidamos juntos". La votación se abre en una ventana desde "Que voten…" en Dónde y Cuándo. */
.start-c .start-vote{padding:0;background:none;border:0;display:grid;gap:10px}
.start-c .start-vote:not(.has-vote):has(.start-vote-mini[hidden]):has(.start-vote-foot[hidden]):has(.start-vote-sheet[hidden]){display:none}
.start-vote-open{display:grid;gap:6px;margin-top:10px}
.start-vote-open[hidden]{display:none}
.start-vote-open-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:40px;padding:8px 12px;border:1.5px dashed #7C3CFF;border-radius:12px;background:#F5F0FF;color:#7C3CFF;font:inherit;font-size:.84rem;font-weight:900;cursor:pointer}
.start-vote-open-btn:hover{background:#EDE3FF}
.start-vote-open-btn:disabled{border-color:#d8d3e6;background:#f6f5f9;color:#a9a3bd;cursor:not-allowed}
.start-vote-lock{margin:0;font-size:.76rem;line-height:1.4;color:var(--muted)}
.start-vote-lock[hidden]{display:none}
.start-vote-lock i{margin-right:3px;color:#a9a3bd}
.start-vote-lock button{padding:0;border:0;background:none;color:#7C3CFF;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.start-vote-inline,.start-c .start-vote-mini{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #BFE9D6;border-radius:12px;background:#EFFAF5}
.start-vote-inline{margin-top:4px}
.start-vote-inline[hidden],.start-c .start-vote-mini[hidden]{display:none}
.start-vote-inline>i{font-size:1.2rem;color:#0CA678}
.start-vote-inline>span{flex:1;display:grid;gap:1px;min-width:0}
.start-vote-inline b{font-size:.86rem;font-weight:900;color:var(--dark2)}
.start-vote-inline small{color:var(--muted);font-size:.76rem;line-height:1.3}
.start-vote-edit{flex:none;display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border:0;border-radius:999px;background:#fff;color:#7C3CFF;font:inherit;font-size:.78rem;font-weight:900;cursor:pointer}
/* Ventana: hoja desde abajo en el celular, cuadro al centro en el computador. */
html.start-vote-sheet-open{overflow:hidden}
.start-vote-sheet{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}
.start-vote-sheet[hidden]{display:none}
.start-vote-sheet-dim{position:absolute;inset:0;background:rgba(29,26,43,.5)}
.start-vote-sheet .start-vote-panel{position:relative;width:min(640px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;margin:0;padding:16px 18px 18px;border:0;border-radius:22px;background:#fff;box-shadow:0 20px 50px rgba(29,26,43,.3)}
.start-vote-sheet-head{display:flex;align-items:center;gap:8px}
.start-vote-sheet-head h3{display:flex;align-items:center;gap:8px;margin:0;font-size:1.1rem;font-weight:900;color:var(--dark2)}
.start-vote-sheet-head h3 i{color:#7C3CFF}
.start-vote-sheet-x{margin-left:auto;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#F3F0FA;color:var(--dark2);cursor:pointer}
.start-vote-kind-hint{margin:-4px 0 0;font-size:.78rem;color:var(--muted)}
.start-vote-kind.is-locked{opacity:.45;cursor:not-allowed}
.start-vote-kind.is-locked span::before{content:"\F47B";font-family:bootstrap-icons;font-size:.8rem}
.start-vote-sheet .start-vote-done{position:sticky;bottom:-18px;margin:0 -18px -18px;padding:12px 18px 18px;background:#fff;border-top:1px solid #f0ecf8}
@media(max-width:640px){
  .start-vote-sheet{align-items:flex-end;padding:0}
  .start-vote-sheet .start-vote-panel{width:100%;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0;padding:14px 14px 16px}
  .start-vote-sheet .start-vote-done{bottom:-16px;margin:0 -14px -16px;padding:12px 14px 16px}
}

/* 2026-10-29 (consejo, Paso 1 opción A): 5 tipos a la vista + "Ver más", un solo "Que voten" y lo opcional en una línea. */
.start-c .start-type.is-more{display:none}
.start-c .start-type-more>span{background:#6B6B80}
.start-c .start-vote-open{display:none}
.start-c .start-vote-lock{display:none}
/* 2026-10-29 opción A: "Que voten" y "Agregar más detalles" como tarjetas que se tocan enteras. */
.start-action-card{--action:#7C3CFF;display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:14px 16px;border:2px solid var(--action);border-radius:16px;background:#F5F0FF;color:var(--dark2,#14112A);font:inherit;text-align:left;cursor:pointer;transition:transform .12s,box-shadow .15s}
.start-action-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(124,60,255,.18)}
.start-action-card.is-teal{--action:#00A9A0;background:#EAFBF9}
.start-action-card.is-teal:hover{box-shadow:0 8px 20px rgba(0,169,160,.18)}
.start-action-card[hidden],.start-c .start-optional-row[hidden]{display:none}
.start-action-icon{flex:0 0 44px;display:grid;place-items:center;height:44px;border-radius:50%;background:var(--action);color:#fff;font-size:1.25rem}
.start-action-text{flex:1;min-width:0}
.start-action-text b{display:block;font-size:.98rem;line-height:1.3}
.start-action-text small{display:block;margin-top:2px;color:var(--muted,#6b6478);font-size:.8rem;line-height:1.35}
.start-action-go{color:var(--action);font-size:.85rem;font-weight:900;white-space:nowrap}
@media(max-width:720px){
  .start-action-card{gap:12px;padding:12px 14px}
  .start-action-icon{flex-basis:40px;height:40px;font-size:1.1rem}
  .start-action-go{font-size:0}
  .start-action-go i{font-size:1rem}
  .start-c .start-type-grid{grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;margin:0;padding:4px 0 0}
  .start-c .start-type>span{min-height:72px}
  .start-c .start-swipe{display:none}
}
