@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap");

:root {
    --bg: #0b0b0c;
    --fg: #f4f4f5;
    --muted: #b7b7bc;
    --faint: #7b7b82;
    --line: rgba(244, 244, 245, 0.12);
    --panel: rgba(244, 244, 245, 0.06);
    --panel2: rgba(244, 244, 245, 0.04);
    --accent: #c9f5a8;
    /* soft emergency green */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    letter-spacing: 0.2px;
}

.maxWidth {
    max-width: 1440px;
    margin: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

header {
    display: grid;
    gap: 14px;
    padding: 24px 0 10px;
    border-bottom: 1px solid var(--line);
}

.brandline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.title {
    font-size: 28px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.number {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.status {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.status .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--accent);
    margin-right: 8px;
    box-shadow: 0 0 0 3px rgba(201, 245, 168, 0.08);
}

.hero {
    padding: 26px 0 18px;
    display: grid;
    gap: 14px;
}

.heroTwoColumns {
    display: flex;
    justify-content: space-between;
}

.system {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.system .label {
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.system .msg {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 22px;
    margin-left: 6px;
    border-radius: 2px;
    background: var(--fg);
    opacity: 0.7;
    animation: blink 1.1s steps(1, end) 2;
    vertical-align: -3px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 0.7;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 920px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 650;
}

.hold {
    display: grid;
    gap: 12px;
}

.hold .track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.12);
}

.track .meta {
    display: grid;
    gap: 4px;
}

.track .name {
    font-size: 16px;
    font-weight: 650;
}

.track .sub {
    font-size: 12px;
    color: var(--muted);
}

.btn {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(244, 244, 245, 0.08);
    color: var(--fg);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.btn:hover {
    background: rgba(244, 244, 245, 0.12);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: 2px solid rgba(201, 245, 168, 0.35);
    outline-offset: 2px;
}

.hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.tickets {
    display: grid;
    gap: 10px;
}

.ticket {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.10);
    cursor: pointer;
}

.ticket:hover {
    background: rgba(0, 0, 0, 0.16);
}

.ticket:focus {
    outline: 2px solid rgba(201, 245, 168, 0.28);
    outline-offset: 2px;
}

.ticketTop {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.ticketId {
    font-weight: 750;
    letter-spacing: 1.1px;
}

.badge {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.badge.answered {
    color: rgba(201, 245, 168, 0.95);
    border-color: rgba(201, 245, 168, 0.25);
}

.badge.pending {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.18);
}

.badge.escalated {
    color: rgba(255, 221, 120, 0.95);
    border-color: rgba(255, 221, 120, 0.22);
}

.ticketBody {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.ticketBody .row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.ticketBody .row span:first-child {
    width: 120px;
    color: var(--faint);
}

.faq {
    display: grid;
    gap: 10px;
}

.qa {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.10);
}

.qa .q {
    font-weight: 700;
    margin-bottom: 6px;
}

.qa .a {
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

.contact {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.contact .big {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

footer {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* modal */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 50;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    /* ⬅️ OCULTO POR DEFECTO */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#overlay.show {
    display: flex !important;
    /* Forzamos que se muestre como flex */
}

.overlay.show {
    display: flex;
}

.modal {
    width: min(690px, 100%);
    background: #0f0f12;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.modalHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 245, 0.04);
}

.modalHead .left {
    display: grid;
    gap: 2px;
}

.modalHead .mTitle {
    font-weight: 750;
    letter-spacing: 1px;
}

.modalHead .mSub {
    color: var(--muted);
    font-size: 12px;
}

.modalBody {
    padding: 14px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.modalBody .kvs {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.kv {
    display: flex;
    gap: 10px;
}

.kv .k {
    width: 120px;
    color: var(--faint);
}

.kv .v {
    color: var(--muted);
}

.modalBody .note {
    margin: 0;
    color: rgba(244, 244, 245, 0.82);
}

/* HELP overlay message */
.helpSplash {
    text-align: center;
    padding: 34px 20px 30px;
}

.helpSplash .big {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--fg);
}

.helpSplash .small {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.kbd {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--line);
    border-bottom-color: rgba(244, 244, 245, 0.18);
    background: rgba(244, 244, 245, 0.06);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--muted);
}

/* =========================
   Form inputs – Call For Help
========================= */

.panel input,
.panel textarea {
    width: 100%;
    margin: 8px 0 14px;
    padding: 12px 14px;

    background: rgba(0, 0, 0, 0.18);
    color: #f4f4f5;

    border: 1px solid rgba(244, 244, 245, 0.14);
    border-radius: 12px;

    font-size: 14px;
    line-height: 1.4;

    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Placeholder */
.panel input::placeholder,
.panel textarea::placeholder {
    color: rgba(244, 244, 245, 0.35);
}

/* Focus */
.panel input:focus,
.panel textarea:focus {
    border-color: rgba(244, 244, 245, 0.35);
    box-shadow: 0 0 0 1px rgba(244, 244, 245, 0.08);
}

/* Textarea */
.panel textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select arrow consistency */
/* =========================
   Custom Select (Category)
========================= */

.panel select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(0, 0, 0, 0.18);
    color: #f4f4f5;
    border: 1px solid rgba(244, 244, 245, 0.14);
    border-radius: 12px;
    padding: 12px 42px 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(244, 244, 245, 0.55) 50%),
        linear-gradient(135deg, rgba(244, 244, 245, 0.55) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    width: 100%;
    margin: 8px 0 14px;
}

/* Hover */
.panel select:hover {
    border-color: rgba(244, 244, 245, 0.28);
}

/* Focus */
.panel select:focus {
    outline: none;
    border-color: rgba(244, 244, 245, 0.35);
    box-shadow: 0 0 0 1px rgba(244, 244, 245, 0.08);
}

/* Options dropdown (limitado por navegador) */
.panel select option {
    background: #0b0b0c;
    color: #f4f4f5;
}


/* Checkbox labels */
.panel .checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 14px;
    font-size: 13px;
    color: rgba(244, 244, 245, 0.75);
}

/* Checkbox input */
.panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #f4f4f5;
}

/* Form status text */
#formStatus {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: rgba(244, 244, 245, 0.6);
}

.panel input.error,
.panel textarea.error,
.panel select.error {
    border-color: rgba(248, 113, 113, 0.6);
}
.ea-dDgA.ea-dDgA.ea-dDgA.ea-dDgA.ea-dDgA.ea-dDgA{
    border: 1px solid #313132!important;
}
@media (max-width: 1400px) {
    .maxWidth {
        padding: 20px 50px;
    }
}

@media (max-width: 768px) {
    .maxWidth {
        padding: 25px;
    }
}

@media (max-width: 536px) {
    .maxWidth {
        padding: 25px 16px;
    }

    .heroTwoColumns {
        flex-direction: column;
    }
}