/* ── Ghangah – Área privada ─────────────────────────────────────────────── */

/* Overlay de fondo */
.ghangah-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.ghangah-panel-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Panel full screen */
.ghangah-panel-drawer {
    position: absolute;
    inset: 0;
    background: #f7f4ef;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

.ghangah-panel-overlay.is-open .ghangah-panel-drawer {
    transform: translateY(0);
}

.ghangah-panel-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--gh-tierra-d, #5c4530);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ghangah-panel-drawer__logo {
    font-family: var(--gh-font, 'Georgia', serif);
    font-size: .9rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.85);
}

.ghangah-panel-drawer__cerrar {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: rgba(255,255,255,.8);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background .2s;
}

.ghangah-panel-drawer__cerrar:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* Ajuste para barra admin WP */
.admin-bar .ghangah-panel-overlay { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .ghangah-panel-overlay { top: 46px; }
}

.ghangah-panel-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    font-family: var(--gh-font, 'Georgia', serif);
    background: #f7f4ef;
    color: var(--gh-texto, #2d2416);
}

/* ── Login ───────────────────────────────────────────────────────────────── */
.ghangah-login-wrap {
    margin: auto;
    width: 100%;
    max-width: 400px;
    padding: 48px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
    text-align: center;
}

.ghangah-login__logo {
    font-size: 3rem;
    color: var(--gh-tierra, #8b6f47);
    line-height: 1;
    margin-bottom: 16px;
}

.ghangah-login__titulo {
    font-size: 1.5rem;
    color: var(--gh-tierra-d, #5c4530);
    margin: 0 0 4px;
    font-weight: normal;
}

.ghangah-login__sub {
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gh-gris, #888);
    margin: 0 0 32px;
}

.ghangah-login-form label {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: .88rem;
    gap: 5px;
    margin-bottom: 16px;
    color: #444;
}

.ghangah-login-form input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s;
}

.ghangah-login-form input:focus {
    outline: none;
    border-color: var(--gh-tierra, #8b6f47);
}

.ghangah-login__ayuda {
    font-size: .82rem;
    color: var(--gh-gris, #888);
    margin-top: 24px;
    line-height: 1.6;
}

/* ── Panel layout ────────────────────────────────────────────────────────── */
.ghangah-panel-sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--gh-tierra-d, #5c4530);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    flex-shrink: 0;
}

.ghangah-panel-sidebar__logo {
    font-size: 2rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 8px;
}

.ghangah-panel-sidebar__nombre {
    font-size: .9rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: 16px;
}

.ghangah-panel-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.ghangah-panel-nav li { margin-bottom: 4px; }

.ghangah-panel-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: background .2s, color .2s;
}

.ghangah-panel-nav a:hover,
.ghangah-panel-nav a.is-active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.ghangah-badge-count {
    background: #c0392b;
    color: #fff;
    border-radius: 20px;
    font-size: .75rem;
    padding: 1px 7px;
    font-style: normal;
}

.ghangah-panel-main {
    flex: 1;
    padding: 48px 48px;
    overflow-y: auto;
}

.ghangah-panel-seccion h2 {
    font-size: 1.4rem;
    color: var(--gh-tierra-d, #5c4530);
    margin: 0 0 28px;
    border-bottom: 1px solid #e8dfc8;
    padding-bottom: .5em;
}

/* ── Inscripciones ───────────────────────────────────────────────────────── */
.ghangah-inscripciones-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ghangah-inscripcion-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border-left: 4px solid #ddd;
}

.ghangah-inscripcion-card--confirmado { border-left-color: var(--gh-musgo, #5a7a5a); }
.ghangah-inscripcion-card--pendiente  { border-left-color: #e67e22; }
.ghangah-inscripcion-card--cancelado  { border-left-color: #c0392b; opacity: .7; }

.ghangah-inscripcion-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ghangah-inscripcion-card__header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--gh-tierra-d, #5c4530);
}

.ghangah-estado-badge {
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ghangah-estado-badge--confirmado { background: #eaf5ea; color: #2e7d32; }
.ghangah-estado-badge--pendiente  { background: #fff8e1; color: #e67e22; }
.ghangah-estado-badge--cancelado  { background: #fdecea; color: #c0392b; }

.ghangah-inscripcion-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ghangah-pendiente-aviso {
    font-style: italic;
    color: #999;
}

/* ── Mensajes ────────────────────────────────────────────────────────────── */
.ghangah-mensajes-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ghangah-mensaje-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    border-left: 4px solid var(--gh-tierra, #8b6f47);
}

.ghangah-mensaje-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.ghangah-mensaje-card__header strong {
    color: var(--gh-tierra-d, #5c4530);
}

.ghangah-mensaje-card__header time {
    font-size: .82rem;
    color: #999;
}

.ghangah-mensaje-card p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.75;
    color: #444;
}

/* ── Contacto ────────────────────────────────────────────────────────────── */
.ghangah-contacto-form label {
    display: flex;
    flex-direction: column;
    font-size: .88rem;
    gap: 5px;
    margin-bottom: 16px;
    color: #444;
}

.ghangah-contacto-form input,
.ghangah-contacto-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s;
}

.ghangah-contacto-form input:focus,
.ghangah-contacto-form textarea:focus {
    outline: none;
    border-color: var(--gh-tierra, #8b6f47);
}

/* ── Botones del panel ───────────────────────────────────────────────────── */
.ghangah-btn-panel {
    background: var(--gh-tierra, #8b6f47);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
    width: 100%;
    transition: background .2s;
}

.ghangah-btn-panel:hover { background: var(--gh-tierra-d, #5c4530); }

.ghangah-btn-salir {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.7);
    border-radius: 6px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    margin-top: 24px;
    transition: background .2s;
}

.ghangah-btn-salir:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Respuesta / mensajes de estado ─────────────────────────────────────── */
.ghangah-panel-respuesta {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .88rem;
    display: none;
}

.ghangah-panel-respuesta.exito { background: #eaf5ea; color: #2e7d32; display: block; }
.ghangah-panel-respuesta.error { background: #fdecea; color: #c0392b; display: block; }

.ghangah-panel-vacio {
    color: #999;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .ghangah-panel-page { flex-direction: column; }

    .ghangah-panel-sidebar {
        width: 100%;
        min-height: auto;
        padding: 24px 20px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .ghangah-panel-sidebar__logo,
    .ghangah-panel-sidebar__nombre { display: none; }

    .ghangah-panel-nav { display: flex; flex: none; gap: 4px; }
    .ghangah-panel-nav li { margin: 0; }
    .ghangah-btn-salir { margin-top: 0; }

    .ghangah-panel-main { padding: 24px 20px; }

    .ghangah-inscripcion-card__header { flex-direction: column; gap: 8px; align-items: flex-start; }
}
