/* ═══════════════════════════════════════════════════════════════════
   Hacelo Circular — Public CSS v1.0.4
   Paleta: #3857a4 · #eb7a1e · #839ed2 · #df8d68
   Font: Montserrat · Estilo: limpio, moderno, sin brutalismo
   ═══════════════════════════════════════════════════════════════════ */

/* Variables */
.hc-listing,.hc-submit-wrap,.hc-account,.hc-auth-wrap,.hc-single {
    --b:  #3857a4;
    --bh: #2d4690;
    --bl: #eef2fb;
    --o:  #eb7a1e;
    --oh: #d46c18;
    --ol: #fdf2ea;
    --in: #839ed2;
    --sa: #df8d68;
    --dk: #1a2b4a;
    --tx: #1e2a3b;
    --mu: #6b7280;
    --br: #e2e8f0;
    --bg: #f7f9fc;
    --wh: #ffffff;
    --ok: #16a34a;
    --er: #dc2626;
    --rs: 8px;
    --rm: 12px;
    --rl: 16px;
    --rb: 50px;
    --sh: 0 4px 16px rgba(0,0,0,.07);
    --shm:0 8px 28px rgba(0,0,0,.11);
    --f: "Montserrat",-apple-system,BlinkMacSystemFont,sans-serif;
}

/* Reset suave */
.hc-listing *,.hc-submit-wrap *,.hc-account *,.hc-auth-wrap * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* ═══ TIPOGRAFÍA ════════════════════════════════════════════════ */
.hc-listing,.hc-submit-wrap,.hc-account,.hc-auth-wrap {
    font-family: var(--f);
    color: var(--tx);
    line-height: 1.6;
}

/* ═══ BOTONES ═══════════════════════════════════════════════════ */
.hc-listing .hc-btn,
.hc-submit-wrap .hc-btn,
.hc-account .hc-btn,
.hc-auth-wrap .hc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 22px !important;
    border: none !important;
    border-radius: var(--rb) !important;
    font-family: var(--f) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background .15s, transform .1s, box-shadow .15s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
    letter-spacing: .2px !important;
    line-height: 1.4 !important;
}
.hc-btn:hover  { transform: translateY(-1px) !important; box-shadow: var(--shm) !important; }
.hc-btn:active { transform: translateY(0) !important; }
.hc-btn--primary { background: var(--b) !important; color: #fff !important; }
.hc-btn--primary:hover { background: var(--bh) !important; color: #fff !important; }
.hc-btn--orange  { background: var(--o) !important; color: #fff !important; }
.hc-btn--orange:hover { background: var(--oh) !important; color: #fff !important; }
.hc-btn--ghost { background: transparent !important; color: var(--b) !important; border: 2px solid var(--b) !important; }
.hc-btn--ghost:hover { background: var(--bl) !important; }
.hc-btn--light { background: var(--bl) !important; color: var(--b) !important; }
.hc-btn--sm { padding: 7px 16px !important; font-size: 12px !important; }
.hc-btn--lg { padding: 13px 32px !important; font-size: 15px !important; }
.hc-btn--full { width: 100% !important; }

/* Spinner */
.hc-btn-spinner { width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:hc-spin .6s linear infinite;display:inline-block; }
.hc-loading { display:flex;flex-direction:column;align-items:center;gap:14px;padding:56px 32px;color:var(--mu); }
.hc-spinner { width:32px;height:32px;border:3px solid var(--br);border-top-color:var(--b);border-radius:50%;animation:hc-spin .7s linear infinite; }
@keyframes hc-spin { to { transform:rotate(360deg); } }

/* ═══ MUROS ═════════════════════════════════════════════════════ */
.hc-wall { text-align:center;padding:64px 32px;background:var(--wh);border-radius:var(--rl);box-shadow:var(--sh);max-width:480px;margin:40px auto; }
.hc-wall__icon { font-size:52px;display:block;margin-bottom:16px; }
.hc-wall h3 { font-size:22px;font-weight:800;margin:0 0 10px;color:var(--dk);font-family:var(--f); }
.hc-wall p  { color:var(--mu);margin:0 0 28px;font-size:15px; }
.hc-wall__actions { display:flex;gap:12px;justify-content:center;flex-wrap:wrap; }

/* ═══════════════════════════════════════════════════════════════
   LISTADO
   ═══════════════════════════════════════════════════════════════ */
.hc-listing { display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start;padding:8px 0;font-family:var(--f);position:relative; }

/* ── Panel de filtros ─────────────────────────────────────────── */
.hc-filters-panel {
    position: sticky;
    top: 24px;
    background: var(--wh);
    border-radius: var(--rl);
    box-shadow: var(--sh);
    border: 1px solid var(--br);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.hc-filters-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--br);
    background: var(--wh); position: sticky; top: 0; z-index: 2;
}
.hc-filters-panel__title {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 800; color: var(--dk);
    text-transform: uppercase; letter-spacing: .8px;
}
.hc-filters-panel__title svg { color: var(--b); }
.hc-filters-panel__clear {
    background: none; border: none; font-family: var(--f);
    font-size: 11px; font-weight: 700; color: var(--mu);
    cursor: pointer; padding: 3px 0; text-decoration: underline; transition: color .15s;
}
.hc-filters-panel__clear:hover { color: var(--er, #dc2626); }
.hc-filters-panel__close {
    background: none; border: none; font-size: 14px; cursor: pointer;
    color: var(--mu); padding: 2px 4px; line-height: 1; display: none;
}

/* Bloques */
.hc-filter-block { padding: 12px 16px; border-bottom: 1px solid var(--br); }
.hc-filter-block:last-child { border-bottom: none; }
.hc-filter-block--cta { padding: 14px 16px; background: var(--bg); }
.hc-filter-block__label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--mu); margin-bottom: 10px; display: block;
}

/* Secciones collapsibles */
.hc-filter-section__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; cursor: pointer;
    padding: 0; font-family: var(--f); text-align: left;
}
.hc-filter-section__toggle:hover .hc-filter-block__label { color: var(--b); }
.hc-section-caret { color: var(--mu); transition: transform .2s; flex-shrink: 0; }
.hc-filter-section.is-open .hc-section-caret { transform: rotate(180deg); }
.hc-filter-section__body { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.hc-filter-section.is-open .hc-filter-section__body { max-height: 500px; }
.hc-filter-section__body > * { margin-top: 10px; }

/* Buscador */
.hc-filter-search { position: relative; }
.hc-filter-search__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--mu); pointer-events: none; }
.hc-filter-search__input {
    width: 100% !important; padding: 8px 10px 8px 32px !important;
    border: 1.5px solid var(--br) !important; border-radius: var(--rs) !important;
    font-family: var(--f) !important; font-size: 13px !important; color: var(--tx) !important;
    background: var(--bg) !important; outline: none !important; box-shadow: none !important;
    transition: border-color .15s !important; -webkit-appearance: none !important;
}
.hc-filter-search__input:focus { border-color: var(--b) !important; background: var(--wh) !important; }
.hc-filter-search__input::placeholder { color: #b0b8c4; }

/* Pills multi-select */
.hc-filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.hc-pill {
    padding: 4px 11px; border: 1.5px solid var(--br); border-radius: var(--rb);
    background: var(--wh); font-family: var(--f); font-size: 12px; font-weight: 600;
    cursor: pointer; color: var(--mu); transition: all .15s; white-space: nowrap;
}
.hc-pill:hover { border-color: var(--b); color: var(--b); background: var(--bl); }
.hc-pill--active { background: var(--b) !important; border-color: var(--b) !important; color: #fff !important; }

/* Select */
.hc-filter-select-wrap { position: relative; }
.hc-filter-select {
    width: 100% !important; padding: 8px 28px 8px 10px !important;
    border: 1.5px solid var(--br) !important; border-radius: var(--rs) !important;
    font-family: var(--f) !important; font-size: 13px !important; color: var(--tx) !important;
    background: var(--bg) !important; outline: none !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important;
    cursor: pointer !important; transition: border-color .15s !important;
}
.hc-filter-select:focus { border-color: var(--b) !important; background: var(--wh) !important; }
.hc-select-caret { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--mu); pointer-events: none; }

/* Checklist */
.hc-filter-checklist { display: flex; flex-direction: column; gap: 7px; }
.hc-filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--f); }
.hc-filter-check input { display: none; }
.hc-filter-check__box {
    width: 15px; height: 15px; flex-shrink: 0; border: 1.5px solid var(--br); border-radius: 4px;
    background: var(--wh); transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.hc-filter-check input:checked ~ .hc-filter-check__box { background: var(--b); border-color: var(--b); }
.hc-filter-check input:checked ~ .hc-filter-check__box::after {
    content: ''; width: 7px; height: 4px; border-left: 2px solid #fff;
    border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); display: block;
}
.hc-filter-check__label { font-size: 12px; color: var(--tx); transition: color .15s; }
.hc-filter-check:hover .hc-filter-check__label { color: var(--b); }

/* Overlay mobile */
.hc-filters-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 998; backdrop-filter: blur(2px);
}
.hc-filters-overlay.is-visible { display: block; }

/* Sort */
.hc-sort-wrap { position: relative; }
.hc-sort-select {
    padding: 7px 28px 7px 12px !important; border: 1.5px solid var(--br) !important;
    border-radius: var(--rb) !important; font-family: var(--f) !important;
    font-size: 13px !important; font-weight: 600 !important; background: var(--wh) !important;
    color: var(--tx) !important; cursor: pointer !important;
    -webkit-appearance: none !important; appearance: none !important;
    outline: none !important; box-shadow: none !important;
}
.hc-sort-wrap .hc-select-caret { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mu); }

/* Main */
.hc-listing__main { display: flex; flex-direction: column; gap: 16px; }
.hc-listing__topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hc-results-count { font-size: 13px; font-weight: 600; color: var(--mu); font-family: var(--f); }
.hc-results-count #hc-count-num { color: var(--b); font-weight: 800; font-size: 15px; }
.hc-listing__controls { display: flex; align-items: center; gap: 8px; }

/* Toggle button (mobile) */
.hc-filters-toggle { display: none; align-items: center; gap: 6px; }

/* Grid */
.hc-materials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* Card */
.hc-material-card { background: var(--wh); border-radius: var(--rl); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(0,0,0,.04); }
.hc-material-card:hover { transform: translateY(-3px); box-shadow: var(--shm); }
.hc-card-img-wrap { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); text-decoration: none !important; }
.hc-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; display: block; }
.hc-material-card:hover .hc-card-img { transform: scale(1.05); }
.hc-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; opacity: .2; }
.hc-card-categoria { position: absolute; bottom: 10px; left: 10px; background: var(--o); color: #fff; border-radius: var(--rb); padding: 4px 12px; font-size: 11px; font-weight: 700; font-family: var(--f); }
.hc-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hc-card-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--dk); font-family: var(--f); }
.hc-card-title a { text-decoration: none !important; color: inherit !important; }
.hc-card-title a:hover { color: var(--b) !important; }
.hc-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hc-card-location { font-size: 12px; color: var(--mu); display: flex; align-items: center; gap: 4px; }
.hc-stars { color: #f59e0b; font-size: 12px; }
.hc-card-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.hc-card-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; font-family: var(--f); border: 1px solid rgba(0,0,0,.06); }
.hc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--br); }
.hc-card-requests { font-size: 11px; color: var(--mu); font-weight: 600; }

/* Paginación */
.hc-listing__pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.hc-page-btn { padding: 7px 14px; border: 1.5px solid var(--br); border-radius: var(--rb); background: var(--wh); font-family: var(--f); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; color: var(--tx); }
.hc-page-btn:hover { border-color: var(--b); color: var(--b); background: var(--bl); }
.hc-page-btn--active { background: var(--b); color: #fff !important; border-color: var(--b); }

/* Empty */
.hc-empty { text-align: center; padding: 48px 24px; color: var(--mu); grid-column: 1/-1; font-family: var(--f); }
.hc-empty__icon { font-size: 44px; display: block; margin-bottom: 12px; opacity: .4; }
.hc-empty p { font-size: 14px; margin: 0 0 16px; }

/* Responsive */
@media (max-width: 900px) {
    .hc-listing { grid-template-columns: 220px 1fr; gap: 16px; }
    .hc-materials-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
    .hc-listing { grid-template-columns: 1fr; }
    .hc-filters-panel {
        position: fixed !important;
        top: 0; left: -280px; bottom: 0;
        width: 260px; max-height: 100vh;
        z-index: 999; border-radius: 0;
        transition: left .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
    }
    .hc-filters-panel.is-open { left: 0; }
    .hc-filters-panel__close { display: block !important; }
    .hc-filters-toggle { display: inline-flex !important; }
}
@media (max-width: 480px) {
    .hc-materials-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO DE MATERIAL
   ═══════════════════════════════════════════════════════════════ */
.hc-submit-wrap { max-width:820px;margin:0 auto;font-family:var(--f); }
.hc-submit-header { margin-bottom:28px; }
.hc-submit-header h2 { font-size:26px;font-weight:800;margin:0 0 6px;color:var(--dk);font-family:var(--f); }
.hc-submit-header p { color:var(--mu);margin:0;font-size:15px; }

.hc-submit-card { background:var(--wh);border-radius:var(--rl);box-shadow:var(--sh);overflow:hidden; }
.hc-material-form { font-family:var(--f); }

.hc-form-section { padding:28px 32px;border-bottom:1px solid var(--br); }
.hc-form-section:last-of-type { border-bottom:none; }
.hc-form-section__title { display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;color:var(--in);margin:0 0 22px;font-family:var(--f); }

.hc-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:16px 24px; }
.hc-form-grid--photos { grid-template-columns:1fr 1fr; }

/* Campos */
.hc-material-form .hc-form__field { margin:0; }
.hc-material-form .hc-form__label {
    display:flex !important;align-items:center !important;gap:4px !important;
    font-size:11px !important;font-weight:700 !important;text-transform:uppercase !important;
    letter-spacing:.6px !important;color:var(--tx) !important;margin-bottom:7px !important;
    font-family:var(--f) !important;
}
.hc-required { color:var(--er);font-size:13px; }
.hc-form__hint { font-size:12px;color:var(--mu);margin:5px 0 0;display:block;font-family:var(--f); }

/* Inputs */
.hc-material-form .hc-form__input,
.hc-material-form select.hc-form__input,
.hc-material-form textarea.hc-form__input {
    width:100% !important;
    padding:11px 15px !important;
    border:1.5px solid var(--br) !important;
    border-radius:var(--rs) !important;
    font-family:var(--f) !important;
    font-size:14px !important;
    color:var(--tx) !important;
    background:#fff !important;
    outline:none !important;
    box-shadow:none !important;
    transition:border-color .15s,box-shadow .15s !important;
    -webkit-appearance:none !important;
    appearance:none !important;
}
.hc-material-form .hc-form__input:focus {
    border-color:var(--b) !important;
    box-shadow:0 0 0 3px rgba(56,87,164,.1) !important;
}
.hc-material-form textarea.hc-form__input { resize:vertical !important;min-height:110px !important; }
.hc-material-form .hc-form__select {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;background-position:right 14px center !important;
    padding-right:36px !important;cursor:pointer !important;
}

.hc-form__checkgroup { display:flex;flex-direction:column;gap:10px;padding:4px 0; }
.hc-form__check { display:flex;align-items:flex-start;gap:10px;font-size:14px;cursor:pointer;font-family:var(--f); }
.hc-form__check input { width:17px;height:17px;margin-top:1px;accent-color:var(--b);flex-shrink:0; }
.hc-form__check-single { display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;font-family:var(--f); }
.hc-form__radio-group { display:flex;flex-direction:column;gap:8px; }
.hc-form__radio { display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;font-family:var(--f); }
.hc-form__radio input { accent-color:var(--b); }

/* Mensajes del form */
.hc-form__message { margin-top:14px;padding:12px 16px;border-radius:var(--rs);font-size:14px;font-weight:600;border:1.5px solid;font-family:var(--f); }
.hc-form__message--success { background:#f0fdf4;color:var(--ok);border-color:#bbf7d0; }
.hc-form__message--error   { background:#fef2f2;color:var(--er);border-color:#fecaca; }

/* Upload zones */
.hc-upload-zone { position:relative;border:2px dashed var(--br);border-radius:var(--rm);background:var(--bg);min-height:160px;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;transition:border-color .2s,background .2s; }
.hc-upload-zone:hover { border-color:var(--b);background:var(--bl); }
.hc-upload-placeholder { display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--mu);text-align:center;padding:20px;pointer-events:none; }
.hc-upload-icon { color:var(--in);opacity:.6; }
.hc-upload-placeholder p { font-size:14px;font-weight:700;margin:0;color:var(--tx);font-family:var(--f); }
.hc-upload-placeholder span { font-size:12px; }
.hc-upload-preview { width:100%;height:100%;position:relative;min-height:160px; }
.hc-upload-preview img { width:100%;height:160px;object-fit:cover;display:block; }
.hc-upload-input { position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%; }
.hc-upload-remove { position:absolute;top:8px;right:8px;background:rgba(0,0,0,.45);border:2px solid rgba(255,255,255,.4);border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:background .15s; }
.hc-upload-remove:hover { background:var(--er); }

.hc-gallery-zone { display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:2px dashed var(--br);border-radius:var(--rm);background:var(--bg);min-height:100px;align-items:flex-start; }
.hc-gallery-thumb { position:relative;width:72px;height:72px;border-radius:8px;overflow:hidden;border:1.5px solid var(--br); }
.hc-gallery-thumb img { width:100%;height:100%;object-fit:cover; }
.hc-gallery-thumb .hc-upload-remove { top:3px;right:3px;width:20px;height:20px;border-width:1.5px; }
.hc-gallery-add { width:72px;height:72px;border:2px dashed var(--br);border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--mu);transition:all .15s; }
.hc-gallery-add:hover { border-color:var(--b);color:var(--b);background:var(--bl); }

.hc-form-actions { display:flex;gap:12px;align-items:center;padding:22px 32px;background:var(--bg);border-top:1px solid var(--br); }

/* ═══════════════════════════════════════════════════════════════
   MI CUENTA
   ═══════════════════════════════════════════════════════════════ */
.hc-account { max-width:940px;margin:0 auto;font-family:var(--f); }

.hc-account__header { display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,var(--b) 0%,var(--bh) 100%);color:#fff;border-radius:var(--rl) var(--rl) 0 0;padding:24px 28px;flex-wrap:wrap; }
.hc-avatar { border:3px solid rgba(255,255,255,.35);border-radius:50%;width:64px;height:64px;object-fit:cover;display:block; }
.hc-account__info h2 { margin:0 0 8px;font-size:20px;font-weight:800;font-family:var(--f);color:#fff; }
.hc-account__badges { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.hc-badge { display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:var(--rb);font-size:11px;font-weight:800;border:1.5px solid;font-family:var(--f); }
.hc-badge--subscriber { background:#dcfce7;color:#15803d;border-color:#86efac; }
.hc-badge--free       { background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.3); }
.hc-badge--upgrade    { background:var(--o);color:#fff;border-color:transparent;cursor:pointer;text-decoration:none !important; }
.hc-badge--upgrade:hover { background:var(--oh); }
.hc-badge--rating     { background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.3); }
.hc-badge--unread     { background:var(--o);color:#fff;border-color:transparent;animation:hc-pulse 1.5s ease-in-out infinite; }
@keyframes hc-pulse { 0%,100%{opacity:1}50%{opacity:.7} }

.hc-cafecito-btn { margin-left:auto;background:rgba(255,255,255,.12);color:#fff !important;border:1.5px solid rgba(255,255,255,.25);border-radius:var(--rb);padding:9px 20px;font-size:13px;font-weight:700;text-decoration:none !important;transition:background .15s;font-family:var(--f); }
.hc-cafecito-btn:hover { background:rgba(255,255,255,.22); }

/* Tabs */
.hc-account__tabs { display:flex;background:#fff;border-left:1px solid var(--br);border-right:1px solid var(--br);border-bottom:1px solid var(--br);overflow-x:auto;margin-bottom:20px;scrollbar-width:none; }
.hc-account__tabs::-webkit-scrollbar { display:none; }
.hc-account__tab { flex:1;min-width:0;padding:13px 14px;text-align:center;font-family:var(--f);font-size:13px;font-weight:600;text-decoration:none !important;color:var(--mu) !important;border-bottom:3px solid transparent;white-space:nowrap;transition:color .15s,border-color .15s;display:flex;align-items:center;justify-content:center;gap:5px; }
.hc-account__tab:hover { color:var(--b) !important; }
.hc-tab--active { color:var(--b) !important;border-bottom-color:var(--b) !important;font-weight:700 !important; }
.hc-tab__icon { font-size:16px; }
.hc-tab-badge { background:var(--o);color:#fff;border-radius:50%;width:18px;height:18px;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;margin-left:2px; }

.hc-account__content { background:var(--wh);border-radius:var(--rl);box-shadow:var(--sh);padding:26px; }
.hc-tab-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap;gap:10px; }
.hc-tab-header h3 { margin:0;font-size:17px;font-weight:800;color:var(--dk);font-family:var(--f); }

/* Mis materiales */
.hc-my-materials { display:flex;flex-direction:column;gap:10px; }
.hc-my-material-row { display:flex;align-items:center;gap:14px;padding:13px 15px;background:var(--bg);border:1px solid var(--br);border-radius:var(--rm);transition:border-color .15s; }
.hc-my-material-row:hover { border-color:var(--in); }
.hc-my-material-thumb { width:56px;height:56px;border-radius:var(--rs);overflow:hidden;flex-shrink:0;background:var(--br);display:flex;align-items:center;justify-content:center; }
.hc-my-material-thumb img { width:100%;height:100%;object-fit:cover; }
.hc-thumb-placeholder { font-size:24px;opacity:.35; }
.hc-my-material-info { flex:1;min-width:0; }
.hc-my-material-info h4 { margin:0 0 3px;font-size:14px;font-weight:700;color:var(--dk);font-family:var(--f); }
.hc-my-material-info small { color:var(--mu);font-size:12px;display:block;margin-top:2px; }
.hc-my-material-actions { display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0; }

/* Status badges */
.hc-status { display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:var(--rb);font-size:11px;font-weight:700;border:1.5px solid;font-family:var(--f); }
.hc-status--active   { background:#f0fdf4;color:#15803d;border-color:#bbf7d0; }
.hc-status--warn     { background:#fffbeb;color:#92400e;border-color:#fde68a; }
.hc-status--inactive { background:#f9fafb;color:var(--mu);border-color:var(--br); }
.hc-status--chatting { background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe; }
.hc-status--done     { background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe; }
.hc-status--danger   { background:#fef2f2;color:var(--er);border-color:#fecaca; }

/* Solicitudes */
.hc-requests-layout { display:grid;grid-template-columns:1fr 1fr;gap:28px; }
.hc-requests-section {}
.hc-request-list { display:flex;flex-direction:column;gap:8px; }
.hc-request-row { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:var(--bg);border:1px solid var(--br);border-radius:var(--rm);flex-wrap:wrap;transition:border-color .15s;position:relative;overflow:visible; }
.hc-request-row:hover { border-color:var(--in); }
.hc-request-row__info { display:flex;align-items:center;gap:9px;flex:1;min-width:0; }
.hc-mini-avatar { width:36px;height:36px;border-radius:50%;flex-shrink:0; }
.hc-request-material { display:block;font-size:12px;color:var(--mu);margin-top:1px; }
.hc-request-row__actions { display:flex;gap:6px;flex-wrap:wrap; }
.hc-msg-badge { background:var(--o);color:#fff;border-radius:50%;width:17px;height:17px;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:3px; }

/* Chats activos */
.hc-chats-list { display:flex;flex-direction:column;gap:10px; }
.hc-chat-row { display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--bg);border:1px solid var(--br);border-radius:var(--rm);transition:border-color .15s; }
.hc-chat-row:hover { border-color:var(--in); }
.hc-chat-row--unread { border-color:var(--b);background:#f8f9ff; }
.hc-chat-row__avatar { position:relative;flex-shrink:0; }
.hc-chat-row__unread-dot { position:absolute;top:-3px;right:-3px;background:var(--o);color:#fff;border-radius:50%;width:18px;height:18px;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff; }
.hc-chat-row__info { flex:1;min-width:0; }
.hc-chat-row__header { display:flex;align-items:center;gap:8px;margin-bottom:3px;flex-wrap:wrap; }
.hc-chat-row__name { font-size:14px;font-weight:700;color:var(--dk);font-family:var(--f); }
.hc-chat-row__time { font-size:11px;color:var(--mu);margin-left:auto; }
.hc-chat-row__material { font-size:12px;color:var(--mu);display:block;margin-bottom:3px; }
.hc-chat-row__preview { margin:0;font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px; }

/* Perfil */
.hc-profile-layout { display:grid;grid-template-columns:1fr 1fr;gap:36px; }
.hc-profile-layout h3 { font-size:16px;font-weight:800;margin:0 0 20px;color:var(--dk);font-family:var(--f); }
.hc-divider { border:none;border-top:1px solid var(--br);margin:20px 0; }
.hc-rating-summary { display:flex;align-items:center;gap:14px;margin-bottom:18px; }
.hc-rating-avg { font-size:44px;font-weight:800;color:var(--b);line-height:1;font-family:var(--f); }
.hc-ratings-list { display:flex;flex-direction:column;gap:10px; }
.hc-rating-item { padding:13px 15px;background:var(--bg);border:1px solid var(--br);border-radius:var(--rm); }
.hc-rating-item__header { display:flex;align-items:center;gap:8px;margin-bottom:5px;font-size:13px; }
.hc-rating-comment { margin:0;font-size:13px;color:var(--tx);line-height:1.5; }

/* Perfil form inputs */
.hc-profile-form-wrap .hc-form__input,
.hc-profile-form-wrap input.hc-form__input,
.hc-profile-form-wrap textarea.hc-form__input {
    width:100% !important;padding:10px 14px !important;border:1.5px solid var(--br) !important;border-radius:var(--rs) !important;font-family:var(--f) !important;font-size:14px !important;color:var(--tx) !important;background:#fff !important;outline:none !important;box-shadow:none !important;transition:border-color .15s !important;-webkit-appearance:none !important;
}
.hc-profile-form-wrap .hc-form__input:focus { border-color:var(--b) !important;box-shadow:0 0 0 3px rgba(56,87,164,.1) !important; }
.hc-form__row { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.hc-form__field { margin-bottom:18px; }
.hc-form__label { display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--tx);margin-bottom:6px;font-family:var(--f); }

/* ═══════════════════════════════════════════════════════════════
   CHAT MODAL
   ═══════════════════════════════════════════════════════════════ */
.hc-chat-modal { position:fixed;inset:0;z-index:2147483647;display:flex;align-items:flex-end;justify-content:flex-end;padding:24px; }
.hc-chat-modal__overlay { position:absolute;inset:0;background:rgba(0,0,0,.3);backdrop-filter:blur(2px); }
.hc-chat-modal__panel { position:relative;z-index:1;width:420px;max-height:84vh;background:#fff;border-radius:24px;box-shadow:0 24px 60px rgba(0,0,0,.18);display:flex;flex-direction:column;overflow:hidden;animation:chatSlideIn .25s ease; }
@keyframes chatSlideIn { from { opacity:0;transform:translateY(16px) scale(.97); } to { opacity:1;transform:none; } }
.hc-chat-modal__header { display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:linear-gradient(135deg,#3857a4,#5b7fd4) !important;color:#fff !important; }
.hc-chat-modal__header-info { display:flex;align-items:center;gap:10px; }
.hc-chat-modal__dot { width:10px;height:10px;background:#4ade80;border-radius:50%;border:2px solid rgba(255,255,255,.5);flex-shrink:0; }
.hc-chat-modal__header h4 { margin:0;font-size:15px;font-weight:800;color:#fff !important;font-family:var(--f); }
.hc-chat-modal__close { background:rgba(255,255,255,.18) !important;border:none;border-radius:50%;width:30px;height:30px;color:#fff !important;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s; }
.hc-chat-modal__close:hover { background:rgba(255,255,255,.3); }
.hc-chat-modal__messages { flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;background:#f8f9fc !important; }
.hc-msg { display:flex;flex-direction:column; }
.hc-msg--mine { align-items:flex-end; }
.hc-msg--theirs { align-items:flex-start; }
.hc-msg__bubble { max-width:78%;padding:10px 14px;border-radius:18px;word-break:break-word; }
.hc-msg--mine .hc-msg__bubble { background:var(--b) !important;color:#fff !important;border-radius:18px 18px 4px 18px; }
.hc-msg--theirs .hc-msg__bubble { background:#fff !important;color:#111 !important;border:1px solid #e8eaf0;border-radius:18px 18px 18px 4px;box-shadow:0 1px 3px rgba(0,0,0,.05); }
.hc-msg__author { font-size:11px;font-weight:700;opacity:.65;display:block;margin-bottom:3px;font-family:var(--f);color:inherit !important; }
.hc-msg__text { margin:0;font-size:13.5px;line-height:1.5;font-family:var(--f);color:inherit !important; }
.hc-msg--mine .hc-msg__text,.hc-msg--mine .hc-msg__author,.hc-msg--mine p { color:#fff !important; }
.hc-msg__time { font-size:10px;opacity:.55;display:block;margin-top:5px;font-family:var(--f); }
.hc-msg--mine .hc-msg__time { text-align:right; }
.hc-chat-contact { padding:14px 16px;background:#f0fdf4;border-top:1px solid #bbf7d0;font-size:13px;font-family:var(--f); }
.hc-chat-contact__header { display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#15803d;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px; }
.hc-chat-contact p { margin:0 0 4px;font-size:13px;color:#111; }
.hc-chat-actions { padding:12px 16px;border-top:1px solid var(--br);background:#fff; }
.hc-chat-actions__main { display:flex;gap:8px;margin-bottom:8px; }
.hc-chat-btn-accept { flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;background:#22c55e;color:#fff;border:none;border-radius:12px;font-family:var(--f);font-size:14px;font-weight:700;cursor:pointer;transition:background .15s; }
.hc-chat-btn-accept:hover { background:#16a34a; }
.hc-chat-btn-reject { flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;background:#fff;color:#ef4444;border:2px solid #fca5a5;border-radius:12px;font-family:var(--f);font-size:14px;font-weight:700;cursor:pointer;transition:all .15s; }
.hc-chat-btn-reject:hover { background:#fef2f2;border-color:#ef4444; }
.hc-qty-label { font-size:12px;font-weight:600;color:var(--mu);display:flex;align-items:center;gap:6px; }
.hc-qty-input { width:56px;padding:5px 8px;border:1.5px solid var(--br);border-radius:6px;font-family:var(--f);font-size:13px;text-align:center; }
.hc-rating-form { padding:14px 16px;background:#fffbeb; }
.hc-rating-form h5 { margin:0 0 10px;font-size:13px;font-weight:800;font-family:var(--f); }
.hc-star-picker { display:flex;gap:4px;margin-bottom:10px; }
.hc-star { background:none;border:none;font-size:26px;cursor:pointer;color:#d1d5db;transition:color .1s;padding:0; }
.hc-star.active,.hc-star:hover { color:#f59e0b; }
.hc-rating-comment-field { width:100%;margin-bottom:6px;padding:9px 12px;border:1.5px solid var(--br);border-radius:var(--rs);font-family:var(--f);font-size:13px;resize:none;outline:none;transition:border-color .15s;background:#fff; }
.hc-rating-comment-field:focus { border-color:var(--b); }
.hc-rating-char-count { font-size:11px;color:var(--mu);text-align:right;display:block;margin-bottom:8px; }
.hc-rating-char-count.over { color:var(--er);font-weight:700; }
.hc-chat-input-wrap { display:flex;gap:10px;align-items:flex-end;padding:14px 16px;background:#fff !important;border-top:1px solid var(--br); }
.hc-chat-input { flex:1;padding:10px 14px;border:1.5px solid var(--br);border-radius:14px;font-family:var(--f);font-size:13px;resize:none;outline:none;background:#f8f9fc;transition:border-color .15s; }
.hc-chat-input:focus { border-color:var(--b);background:#fff; }
.hc-chat-send-btn { width:42px;height:42px;flex-shrink:0;background:#3857a4;color:#fff !important;border:none;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s;margin-bottom:2px;opacity:1 !important; }
.hc-chat-send-btn:hover { background:#2d4690;transform:scale(1.05); }
.hc-chat-send-btn:active { transform:scale(.96); }
.hc-chat-send-btn svg { color:#fff !important;stroke:#fff !important; }

/* ═══════════════════════════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════════════════════════ */
.hc-auth-wrap { min-height:60vh;display:flex;align-items:center;justify-content:center;padding:40px 16px;background:var(--bg);font-family:var(--f); }
.hc-auth-card { width:100%;max-width:460px;background:var(--wh);border-radius:var(--rl);box-shadow:var(--shm);padding:40px 36px; }
.hc-auth-logo { font-size:44px;text-align:center;margin-bottom:10px; }
.hc-auth-card h2 { text-align:center;font-size:24px;font-weight:800;margin:0 0 6px;color:var(--dk);font-family:var(--f); }
.hc-auth-sub  { text-align:center;color:var(--mu);margin:0 0 26px;font-size:14px; }
.hc-auth-footer { text-align:center;font-size:13px;color:var(--mu);margin:20px 0 0;font-family:var(--f); }
.hc-auth-footer a { color:var(--b);font-weight:700;text-decoration:none; }
.hc-auth-footer a:hover { text-decoration:underline; }
.hc-remember { font-size:13px;font-weight:600;margin-bottom:18px;display:flex;align-items:center;gap:8px;font-family:var(--f); }
.hc-forgot-link { font-size:12px;color:var(--b);text-decoration:underline; }

.hc-auth-wrap .hc-form__field { margin-bottom:16px; }
.hc-auth-wrap .hc-form__label { display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--tx);margin-bottom:6px;font-family:var(--f); }
.hc-auth-wrap input.hc-form__input {
    width:100% !important;padding:11px 15px !important;border:1.5px solid var(--br) !important;
    border-radius:var(--rs) !important;font-family:var(--f) !important;font-size:14px !important;
    color:var(--tx) !important;background:#fff !important;outline:none !important;box-shadow:none !important;
    transition:border-color .15s !important;-webkit-appearance:none !important;
}
.hc-auth-wrap input.hc-form__input:focus { border-color:var(--b) !important;box-shadow:0 0 0 3px rgba(56,87,164,.1) !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:960px) {
    .hc-listing { grid-template-columns:240px 1fr;gap:18px; }
    .hc-materials-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
    .hc-listing { grid-template-columns:1fr; }
    .hc-listing__sidebar { position:static;display:none; }
    .hc-listing__sidebar.is-open { display:block; }
    .hc-filters-toggle { display:inline-flex !important; }
    .hc-requests-layout { grid-template-columns:1fr; }
    .hc-profile-layout  { grid-template-columns:1fr; }
}
@media (max-width:600px) {
    .hc-materials-grid { grid-template-columns:1fr; }
    .hc-account__header { flex-direction:column;align-items:flex-start; }
    .hc-chat-modal__panel { width:100%;max-height:90vh; }
    .hc-chat-modal { padding:0;align-items:flex-end; }
    .hc-form-grid,.hc-form-grid--photos { grid-template-columns:1fr; }
    .hc-form-section { padding:20px 18px; }
    .hc-form-actions { padding:18px; }
    .hc-auth-card { padding:30px 20px; }
    .hc-form__row { grid-template-columns:1fr; }
}

/* ── Admin: material URL link ─────────────────────────────────────────────── */
.hc-material-url-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #3857a4; text-decoration: none;
    font-weight: 600;
}
.hc-material-url-link:hover { text-decoration: underline; }

/* ── Inline accept/reject in requests list ─────────────────────── */
.hc-btn-accept-inline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: #22c55e; color: #fff;
    border: none; border-radius: 10px;
    font-family: var(--f); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.hc-btn-accept-inline:hover { background: #16a34a; }

.hc-btn-reject-inline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: #fff; color: #ef4444;
    border: 1.5px solid #fca5a5; border-radius: 10px;
    font-family: var(--f); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .15s;
}
.hc-btn-reject-inline:hover { background: #fef2f2; border-color: #ef4444; }

.hc-request-row__actions { display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex-shrink:0; }
/* ── Chat modal: override Divi global styles ──────────────────── */
.hc-chat-modal__panel * { box-sizing:border-box; }
.hc-chat-modal__header, .hc-chat-modal__header * { color:#fff !important; }
.hc-chat-modal__header svg { stroke:#fff !important;fill:none !important; }
.hc-chat-modal__close svg { stroke:#fff !important; }
.hc-chat-modal__messages { background:#f8f9fc !important; }
.hc-msg--mine .hc-msg__bubble, .hc-msg--mine .hc-msg__bubble * { color:#fff !important; }
.hc-msg--theirs .hc-msg__bubble { color:#1e2a3b !important; }
.hc-msg--theirs .hc-msg__bubble * { color:#1e2a3b !important; }
.hc-chat-input { color:#1e2a3b !important; }
.hc-chat-input-wrap { background:#fff !important; }
.hc-chat-actions { background:#fff !important; }
.hc-chat-contact { background:#f0fdf4 !important; }
.hc-chat-contact, .hc-chat-contact * { color:#111 !important; }
.hc-chat-contact__header { color:#15803d !important; }
.hc-qty-label { color:#374151 !important; }
.hc-rating-form { background:#fffbeb !important; }
.hc-rating-form, .hc-rating-form p { color:#111 !important; }
