/* ============================================================
   gig-create.css — estilos específicos de /huesos/nuevo
   Componentes nuevos NO existentes en hueseando-pages.css.
   Tokens --h-* heredados del shared. Ver docs/gig-create-redesign.md §5.
   ============================================================ */

/* ── Stepper visual reactivo ─────────────────────────────── */
.h-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 28px 0 32px;
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-pill, 999px);
    padding: 6px;
    overflow-x: auto;
}
.h-step {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    border-radius: var(--h-pill, 999px);
    white-space: nowrap;
    color: var(--h-fg-muted);
    font-family: var(--h-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    flex-shrink: 0;
}
.h-step .num {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    color: var(--h-fg-muted);
}
.h-step.done { color: var(--h-lime); }
.h-step.done .num { background: var(--h-lime); color: var(--h-bg); }
.h-step.on {
    background: linear-gradient(135deg, var(--h-pink), var(--h-violet));
    color: var(--h-fg);
    box-shadow: var(--h-glow-pink);
}
.h-step.on .num { background: var(--h-bg); color: var(--h-fg); }
.h-step-sep { width: 24px; height: 1px; background: var(--h-line); flex-shrink: 0; }

/* ── Section card numerada ───────────────────────────────── */
.h-gc-card {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-lg, 18px);
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
}
.h-gc-card.active {
    border-color: rgba(255,51,145,0.4);
    box-shadow: 0 0 40px rgba(255,51,145,0.08);
}
.h-gc-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 22px; padding-bottom: 16px;
    border-bottom: 1px solid var(--h-line);
    gap: 12px; flex-wrap: wrap;
}
.h-gc-head .h-mono-label { color: var(--h-cyan); margin-bottom: 2px; }
.h-gc-head h3 {
    font-family: var(--h-display, 'Archivo', sans-serif);
    font-size: 1.375rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.02em;
    margin: 0;
}
.h-gc-head .step-n {
    font-family: var(--h-display, 'Archivo', sans-serif);
    font-size: 2.25rem; font-weight: 900;
    line-height: 1; letter-spacing: -0.04em;
    color: var(--h-pink); opacity: 0.9;
}

/* ── Type cards (4 columnas, glow por tipo) ───────────────── */
.h-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.h-type-card {
    position: relative;
    background: var(--h-surface-2);
    border: 1.5px solid var(--h-line);
    border-radius: var(--h-r-lg, 18px);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--h-fg);
    user-select: none;
}
.h-type-card:hover { border-color: var(--h-line-strong); transform: translateY(-2px); }
.h-type-card.sel {
    /* Default selected = cyan (Show). Cada tipo override abajo con su color. */
    border-color: var(--h-cyan);
    background: linear-gradient(135deg, rgba(0,234,255,0.15), rgba(176,79,255,0.08));
    box-shadow: 0 0 32px rgba(0,234,255,0.25);
}
.h-type-card.sel::before {
    content: '✓';
    position: absolute; top: 10px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--h-lime); color: var(--h-bg);
    font-weight: 900; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--h-glow-lime);
}
.h-type-card .ic { font-size: 28px; margin-bottom: 10px; }
.h-type-card .nm {
    font-family: var(--h-display, 'Archivo', sans-serif);
    font-size: 1.0625rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.01em;
}
.h-type-card .ds {
    font-family: var(--h-mono);
    font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--h-fg-muted); margin-top: 4px;
}
.h-type-card.sel .ic { color: var(--h-cyan); }
.h-type-card[data-t="grabacion"].sel .ic { color: var(--h-violet); }
.h-type-card[data-t="grabacion"].sel {
    border-color: var(--h-violet);
    background: linear-gradient(135deg, rgba(176,79,255,0.15), rgba(255,51,145,0.06));
    box-shadow: 0 0 32px rgba(176,79,255,0.25);
}
.h-type-card[data-t="ensayo"].sel .ic { color: var(--h-lime); }
.h-type-card[data-t="ensayo"].sel {
    border-color: var(--h-lime);
    background: linear-gradient(135deg, rgba(214,255,61,0.15), rgba(0,234,255,0.06));
    box-shadow: 0 0 32px rgba(214,255,61,0.2);
}
.h-type-card[data-t="sesion"].sel .ic { color: var(--h-orange); }
.h-type-card[data-t="sesion"].sel {
    border-color: var(--h-orange);
    background: linear-gradient(135deg, rgba(255,107,43,0.15), rgba(255,51,145,0.06));
    box-shadow: 0 0 32px rgba(255,107,43,0.25);
}
.h-type-card[data-t="otro"].sel {
    border-color: var(--h-line-strong);
    box-shadow: 0 0 32px rgba(255,255,255,0.1);
}

/* ── Pay input destacado ──────────────────────────────────── */
/* NOTA: usamos `.h-gc-card .h-pay-wrap` (specificity 0,0,3,0) para ganar
   sobre `.h-gc-card .form-control` que define padding genérico abajo. */
.h-pay-wrap { position: relative; }
.h-gc-card .h-pay-wrap .form-control,
.h-pay-wrap .form-control {
    font-family: var(--h-display, 'Archivo', sans-serif) !important;
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    color: var(--h-lime) !important;
    text-align: left !important;
    padding: 18px 16px 18px 52px !important;
    background: var(--h-bg) !important;
    border: 1.5px solid var(--h-line) !important;
    height: auto !important;
    min-height: 78px;
}
.h-gc-card .h-pay-wrap .form-control:focus,
.h-pay-wrap .form-control:focus {
    border-color: var(--h-lime) !important;
    box-shadow: 0 0 0 3px rgba(214,255,61,0.15), 0 0 30px rgba(214,255,61,0.25) !important;
}
.h-pay-wrap .prefix {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    font-family: var(--h-display, 'Archivo', sans-serif);
    font-size: 2.25rem; font-weight: 900;
    color: var(--h-lime);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}
.h-pay-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.h-pay-suggest button {
    background: transparent;
    border: 1px solid var(--h-line);
    color: var(--h-fg-dim);
    font-family: var(--h-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: var(--h-pill, 999px);
    cursor: pointer;
    transition: all 0.15s;
}
.h-pay-suggest button:hover { border-color: var(--h-lime); color: var(--h-lime); }

/* ── Toggle row + switch ──────────────────────────────────── */
.h-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--h-line);
    gap: 16px;
}
.h-toggle-row:last-child { border-bottom: none; }
.h-toggle-row .txt { flex: 1; }
.h-toggle-row .txt .t { font-weight: 600; font-size: 0.9375rem; }
.h-toggle-row .txt .s { font-size: 0.8125rem; color: var(--h-fg-dim); margin-top: 2px; }
.h-switch {
    width: 48px; height: 28px;
    border-radius: var(--h-pill, 999px);
    background: var(--h-surface-2);
    border: 1px solid var(--h-line);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}
.h-switch::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--h-fg-muted);
    transition: all 0.15s;
}
.h-switch.on {
    background: linear-gradient(135deg, var(--h-pink), var(--h-violet));
    border-color: transparent;
    box-shadow: var(--h-glow-pink);
}
.h-switch.on::after { left: 23px; background: var(--h-fg); }

/* ── Location autocomplete dropdown ───────────────────────── */
.h-loc-search { min-width: 240px; }
.h-loc-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--h-surface);
    border: 1px solid var(--h-line-strong);
    border-radius: var(--h-r, 12px);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,234,255,0.15);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
}
.h-loc-item {
    display: flex;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--h-line);
    padding: 12px 14px;
    text-align: left;
    color: var(--h-fg);
    cursor: pointer;
    transition: background 0.1s;
    gap: 10px;
    align-items: flex-start;
}
.h-loc-item:last-child { border-bottom: none; }
.h-loc-item:hover { background: rgba(0,234,255,0.08); }
.h-loc-item i { color: var(--h-cyan); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.h-loc-item .primary {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--h-fg);
    line-height: 1.3;
}
.h-loc-item .secondary {
    font-family: var(--h-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--h-fg-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* ── Tip callout ──────────────────────────────────────────── */
.h-tip {
    background: linear-gradient(135deg, rgba(0,234,255,0.08), rgba(176,79,255,0.04));
    border: 1px solid rgba(0,234,255,0.3);
    border-radius: var(--h-r, 12px);
    padding: 14px 16px;
    font-size: 0.875rem;
    display: flex; gap: 12px;
    align-items: flex-start;
}
.h-tip .ic { color: var(--h-cyan); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.h-tip b { color: var(--h-fg); }

/* ── Form controls específicos para gig-create ───────────── */
.h-gc-card .form-control,
.h-gc-card .form-select,
.h-gc-card textarea.form-control {
    background: var(--h-surface-2) !important;
    color: var(--h-fg) !important;
    border: 1px solid var(--h-line) !important;
    border-radius: var(--h-r, 12px) !important;
    padding: 14px 16px !important;
    font-family: var(--h-sans, 'Inter', sans-serif);
    font-size: 1rem;
    transition: all 0.15s;
}
.h-gc-card .form-control::placeholder { color: var(--h-fg-muted); }
.h-gc-card .form-control:focus,
.h-gc-card .form-select:focus {
    border-color: var(--h-pink) !important;
    box-shadow: 0 0 0 3px rgba(255,51,145,0.15), 0 0 20px rgba(255,51,145,0.15) !important;
    background: var(--h-surface-2) !important;
    color: var(--h-fg) !important;
}
.h-gc-card textarea.form-control { min-height: 140px; line-height: 1.55; }

/* Inputs date/time: forzar dark scheme + icono visible.
   Sin esto, el browser pinta el calendar/clock icon en negro casi invisible
   contra el bg oscuro, y el calendar popup nativo sale en light mode. */
.h-gc-card input[type="date"],
.h-gc-card input[type="time"] {
    color-scheme: dark;
}
.h-gc-card input[type="date"]::-webkit-calendar-picker-indicator,
.h-gc-card input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) brightness(1.2);
    cursor: pointer;
    opacity: 0.85;
}
.h-gc-card input[type="date"]::-webkit-calendar-picker-indicator:hover,
.h-gc-card input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.h-gc-card .form-label {
    font-family: var(--h-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--h-fg-dim);
    font-weight: 600;
    margin-bottom: 8px;
}
.h-gc-card .form-label .req { color: var(--h-pink); margin-left: 3px; }
.h-gc-card .form-hint {
    font-family: var(--h-mono);
    font-size: 0.6875rem;
    color: var(--h-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}
.h-gc-card .form-hint.ok { color: var(--h-lime); }
.h-gc-card .form-hint.warn { color: var(--h-orange); }

/* ── Live preview en sidebar ──────────────────────────────── */
.h-preview-wrap { position: sticky; top: 24px; }
.h-preview-title {
    font-family: var(--h-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--h-cyan);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.h-preview-title::before {
    content: '◉';
    animation: h-pulse 1.6s infinite;
}

.h-gc-preview {
    background: var(--h-surface) !important;
    border: 1px solid var(--h-line) !important;
    border-left: 4px solid var(--h-cyan) !important;
    border-radius: var(--h-r-lg, 18px) !important;
    padding: 18px;
    transition: border-left-color 0.2s;
}
.h-gc-preview.type-grabacion { border-left-color: var(--h-violet) !important; }
.h-gc-preview.type-ensayo    { border-left-color: var(--h-lime) !important; }
.h-gc-preview.type-sesion    { border-left-color: var(--h-orange) !important; }
.h-gc-preview.type-otro      { border-left-color: var(--h-line-strong) !important; }

.h-gc-preview .h-type-tag {
    font-family: var(--h-mono);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: var(--h-pill, 999px);
    display: inline-block;
    white-space: nowrap;
}
.h-gc-preview .h-type-tag.show      { background: rgba(0,234,255,0.15); color: var(--h-cyan); }
.h-gc-preview .h-type-tag.grabacion { background: rgba(176,79,255,0.15); color: var(--h-violet); }
.h-gc-preview .h-type-tag.ensayo    { background: rgba(214,255,61,0.15); color: var(--h-lime); }
.h-gc-preview .h-type-tag.sesion    { background: rgba(255,107,43,0.15); color: var(--h-orange); }
.h-gc-preview .h-type-tag.otro      { background: rgba(255,255,255,0.1); color: var(--h-fg-dim); }

.h-pay-preview {
    font-family: var(--h-display, 'Archivo', sans-serif);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--h-lime);
    text-shadow: 0 0 20px rgba(214,255,61,0.3);
    font-size: 1.75rem;
}

/* ── Completion meter ─────────────────────────────────────── */
.h-meter {
    height: 6px;
    background: var(--h-surface-2);
    border-radius: var(--h-pill, 999px);
    overflow: hidden;
    position: relative;
}
.h-meter .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--h-pink), var(--h-lime));
    border-radius: var(--h-pill, 999px);
    transition: width 0.3s;
}

/* ── Sticky submit bar ────────────────────────────────────── */
.h-submit-bar {
    position: sticky; bottom: 0;
    background: rgba(7,8,15,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--h-line);
    padding: 18px 0;
    margin-top: 32px;
    z-index: 10;
}

/* ── Responsive: stack preview below on mobile ────────────── */
@media (max-width: 991.98px) {
    .h-preview-wrap { position: static; margin-top: 24px; }
}

/* Page title em gradient (alineado a pages.css pero local override por seguridad) */
.h-gc-title em {
    font-style: italic;
    background: linear-gradient(90deg, var(--h-pink), var(--h-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
