/* Budsin Hosting: complementa /styles.css (tema oscuro). Sin dependencias. */
.h-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.h-hero { padding: 72px 0 36px; text-align: center; }
.h-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
.h-hero p { color: var(--text-muted); max-width: 640px; margin: 14px auto 26px; }
.h-badge { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--accent); font-size: .8rem; margin-bottom: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 28px 0; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { font-size: 1.1rem; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 10px 0 2px; }
.plan .price small { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.plan ul { list-style: none; margin: 14px 0 18px; color: var(--text-muted); font-size: .92rem; flex: 1; }
.plan li { padding: 4px 0; }
.plan li::before { content: "✓ "; color: var(--accent); }
.plan .btn { justify-content: center; }

.h-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.h-table th, .h-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.h-table th { color: var(--text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.h-scroll { overflow-x: auto; }

.h-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.h-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
.h-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.h-muted { color: var(--text-muted); font-size: .9rem; }
.h-input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; min-width: 0; }
.h-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.h-btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger { background: transparent; color: #f87171; border: 1px solid #7f1d1d; }

.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #71717a; }
.on .dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.clock { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; }
.bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.bar.warn > i { background: #fbbf24; }
.bar.full > i { background: #f87171; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-size: .92rem; }
.alert.warn { background: #3a2a05; border-color: #78560a; color: #fcd34d; }
.alert.err { background: #3b0d0d; border-color: #7f1d1d; color: #fca5a5; }
#toast-box { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 1000; width: min(560px, calc(100vw - 24px)); }
#toast-box .alert { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin: 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
#toast-box button { background: none; border: 0; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; opacity: .8; padding: 2px 4px; }
#toast-box button:hover { opacity: 1; }
.alert.ok { background: #0d2b17; border-color: #166534; color: #86efac; }

.sites { list-style: none; }
.sites li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sites a { color: var(--accent); word-break: break-all; }
.hist { width: 100%; font-size: .85rem; border-collapse: collapse; }
.hist td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.hist td:nth-child(2) { color: var(--text); white-space: nowrap; }
.h-faq h3 { margin: 18px 0 6px; font-size: 1rem; }
.h-faq p { color: var(--text-muted); font-size: .93rem; }
.h-footer-note { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 24px 0; }
.lang-select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .85rem; cursor: pointer; }
.lang-select:focus-visible { outline: 2px solid var(--accent); }
html.i18n-pending body { visibility: hidden; }
.pay-other { font-size: .78rem; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }
@media (max-width: 560px) { .h-table th:nth-child(n+4), .h-table td:nth-child(n+4) { display: none; } }

/* Panel: menos aire arriba que las páginas de contenido; en móvil la cabecera fija puede ocupar más de una línea */
.panel-main { padding-top: 32px; }
@media (max-width: 640px) { .panel-main { padding-top: 88px; } }

/* Administrador de archivos */
.fm-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.fm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; width: min(860px, 100%); }
.fm.drag { outline: 2px dashed var(--accent); }
.fm-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; word-break: break-all; }
.fm-crumbs { margin-bottom: 12px; font-size: .9rem; color: var(--text-muted); word-break: break-all; }
.fm-crumbs a { color: var(--accent); }
.fm-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fm-prog { margin-bottom: 12px; }
.fm-table { width: 100%; }
.fm-table th { text-align: left; font-size: .8rem; color: var(--text-muted); font-weight: 600; padding: 6px 8px; }
.fm-table td { padding: 8px; border-top: 1px solid var(--border); vertical-align: middle; }
.fm-n a { color: var(--accent); word-break: break-all; }
.fm-a { white-space: nowrap; text-align: right; }
.fm-a .btn { margin-left: 4px; }
.fm-drop { margin-top: 12px; text-align: center; font-size: .85rem; }
.fm-edit { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.fm-edit textarea { width: 100%; min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; resize: vertical; tab-size: 2; white-space: pre; }
@media (max-width: 560px) { .fm-d { display: none; } .fm-a { white-space: normal; } }

/* Dominios propios */
.dom-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.dom-st { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(127,127,127,.2); }
.dom-active { background: rgba(52,211,153,.2); color: #34d399; }
.dom-pending { background: rgba(251,191,36,.2); color: #fbbf24; }
.dom-error { background: rgba(248,113,113,.2); color: #f87171; }
.dom-v { word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
