/**
 * SoloFichar — Public Styles
 * ═══════════════════════════
 * Dark, modern aesthetic with glassmorphism.
 * Plus Jakarta Sans · #ccf381 accent · #0f172a dark · #1e293b surface
 *
 * Sections:
 *  1. Variables
 *  2. Theme Hiding (WP overrides)
 *  3. Navbar
 *  4. Full Page Container
 *  5. Blobs
 *  6. Background
 *  7. Glass Card
 *  8. Buttons
 *  9. Fichar Page
 * 10. Circular Button
 * 11. Status Pill
 * 12. Timer
 * 13. Notes Section
 * 14. Feedback Message
 * 15. Login Page
 * 16. Registration Page
 * 17. Home Page
 * 18. Panel Page
 * 19. Data Table
 * 20. Historial Page
 * 21. Utilities
 * 22. Animations
 * 23. Responsive
 */


/* ═══════════════════════════════════════════════════════════
   1. VARIABLES
   ═══════════════════════════════════════════════════════════ */

:root {
    --ch-accent:      #ccf381;
    --ch-accent-rgb:  204, 243, 129;
    --ch-dark:        #0f172a;
    --ch-dark-rgb:    15, 23, 42;
    --ch-surface:     #1e293b;
    --ch-surface-rgb: 30, 41, 59;
    --ch-white:       #ffffff;
    --ch-slate-300:   #cbd5e1;
    --ch-slate-400:   #94a3b8;
    --ch-slate-500:   #64748b;
    --ch-slate-700:   #334155;
    --ch-slate-800:   #1e293b;
    --ch-slate-900:   #0f172a;
    --ch-emerald:     #10b981;
    --ch-red:         #ef4444;
    --ch-amber:       #f59e0b;
    --ch-purple:      #a855f7;
    --ch-font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ch-radius-xl:   1.5rem;
    --ch-radius-2xl:  2rem;
    --ch-radius-3xl:  3rem;
}


/* ═══════════════════════════════════════════════════════════
   2. THEME HIDING — WordPress override on plugin pages
   (body.ch-fullpage is added to all plugin pages)
   ═══════════════════════════════════════════════════════════ */

html:has(body.ch-fullpage),
body.ch-fullpage {
    overflow-x: clip;
}

body.ch-fullpage {
    background: var(--ch-dark) !important;
}

/* Hide ALL theme headers — pero NO los del plugin (.ch-site-header) */
body.ch-fullpage header:not(.ch-site-header),
body.ch-fullpage .wp-site-blocks > header,
body.ch-fullpage .wp-block-template-part[data-tag="header"],
body.ch-fullpage .site-header:not(.ch-site-header),
body.ch-fullpage #masthead,
body.ch-fullpage .ast-header-markup,
body.ch-fullpage .wp-block-template-part.site-header {
    display: none !important;
}

/* Hide ALL theme footers — pero NO los del plugin (.ch-site-footer) */
body.ch-fullpage footer:not(.ch-site-footer),
body.ch-fullpage .wp-site-blocks > footer,
body.ch-fullpage .wp-block-template-part[data-tag="footer"],
body.ch-fullpage .site-footer:not(.ch-site-footer),
body.ch-fullpage #colophon,
body.ch-fullpage .ast-footer-markup,
body.ch-fullpage .wp-block-template-part.site-footer {
    display: none !important;
}

/* Forzar visibilidad de header/footer del plugin */
.ch-site-header {
    display: block !important;
}

.ch-site-footer {
    display: block !important;
}

/* Hide WP page titles */
body.ch-fullpage .entry-title,
body.ch-fullpage .page-title,
body.ch-fullpage .wp-block-post-title,
body.ch-fullpage .ast-archive-title,
body.ch-fullpage h1.wp-block-post-title {
    display: none !important;
}

/* Reset WP layout constraints */
body.ch-fullpage .wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.ch-fullpage .is-layout-constrained,
body.ch-fullpage .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.ch-fullpage .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.ch-fullpage .entry-content,
body.ch-fullpage .wp-block-group,
body.ch-fullpage .wp-block-post-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.ch-fullpage .wp-site-blocks > main,
body.ch-fullpage .wp-site-blocks > .wp-block-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ═══════════════════════════════════════════════════════════
   3. NAVBAR (.ch-nav)
   ═══════════════════════════════════════════════════════════ */

.ch-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: rgba(var(--ch-dark-rgb), 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    will-change: transform;
}

.ch-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.ch-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--ch-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--ch-slate-400);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.ch-nav-link:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.06);
}

.ch-nav-link-active,
.ch-nav-link-active:hover {
    color: var(--ch-accent);
    background: rgba(var(--ch-accent-rgb), 0.1);
}

.ch-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ch-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ch-nav-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--ch-accent-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ch-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--ch-accent);
}

.ch-nav-logout {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--ch-slate-400);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ch-nav-logout:hover {
    color: var(--ch-red);
    background: rgba(239, 68, 68, 0.1);
}

.ch-nav-logout i,
.ch-nav-logout svg {
    width: 18px;
    height: 18px;
}

/* Site logo */
.ch-site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ch-site-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(var(--ch-accent-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-accent);
    flex-shrink: 0;
}

.ch-site-logo-icon i,
.ch-site-logo-icon svg {
    width: 20px;
    height: 20px;
}

.ch-site-logo-text {
    font-family: var(--ch-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--ch-white);
    letter-spacing: -0.02em;
}


/* ═══════════════════════════════════════════════════════════
   4. FULL PAGE CONTAINER (.ch-fichar-page)
   Used by fichar, historial, panel, registro, login, home
   ═══════════════════════════════════════════════════════════ */

.ch-fichar-page {
    min-height: 100vh;
    font-family: var(--ch-font);
    color: var(--ch-white);
    background: var(--ch-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════════════════════
   5. BLOBS (decorative background elements)
   ═══════════════════════════════════════════════════════════ */

.ch-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ch-blob-accent {
    background: radial-gradient(circle, rgba(var(--ch-accent-rgb), 0.18) 0%, transparent 70%);
}

.ch-blob-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

@keyframes ch-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}


/* ═══════════════════════════════════════════════════════════
   6. BACKGROUND (login / auth pages)
   ═══════════════════════════════════════════════════════════ */

.ch-login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ch-login-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ch-login-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--ch-dark-rgb), 0.85);
}

.ch-login-bg-noise {
    display: none;
}


/* ═══════════════════════════════════════════════════════════
   7. GLASS CARD (.ch-glass-card)
   ═══════════════════════════════════════════════════════════ */

.ch-glass-card {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 24px;
}


/* ═══════════════════════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════════════════════ */

.ch-btn-accent,
.ch-btn-outline,
.ch-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ch-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

/* Accent (primary) */
.ch-btn-accent {
    background: var(--ch-accent);
    color: var(--ch-dark);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(var(--ch-accent-rgb), 0.2);
}

.ch-btn-accent:hover {
    background: var(--ch-white);
    color: var(--ch-dark);
    box-shadow: 0 0 15px rgba(var(--ch-accent-rgb), 0.2);
}

/* Outline */
.ch-btn-outline {
    background: transparent;
    border: 1px solid rgba(var(--ch-accent-rgb), 0.3);
    color: var(--ch-accent);
}

.ch-btn-outline:hover {
    background: rgba(var(--ch-accent-rgb), 0.1);
    border-color: rgba(var(--ch-accent-rgb), 0.5);
}

/* Ghost */
.ch-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ch-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-btn-ghost:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sizes */
.ch-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 12px;
}

.ch-btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 18px;
}


/* ═══════════════════════════════════════════════════════════
   9. FICHAR PAGE
   ═══════════════════════════════════════════════════════════ */

.ch-fichar-content {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}

/* Greeting */
.ch-fichar-greeting h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--ch-white);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.ch-fichar-greeting p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Widget card */
.ch-fichar-widget-card {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Info row (2-col grid) */
.ch-fichar-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* Stat items */
.ch-fichar-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
}

.ch-fichar-stat i,
.ch-fichar-stat svg {
    color: var(--ch-accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ch-fichar-stat-info {
    display: flex;
    flex-direction: column;
}

.ch-fichar-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ch-white);
}

.ch-fichar-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Today's log */
.ch-fichar-log {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 20px 24px;
}

.ch-fichar-log-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px;
}

.ch-today-log-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ch-today-log-row:last-child {
    border-bottom: none;
}

.ch-log-entrada {
    color: var(--ch-emerald);
    font-weight: 600;
}

.ch-log-separator {
    color: var(--ch-slate-500);
    font-size: 11px;
}

.ch-log-salida {
    color: var(--ch-red);
    font-weight: 600;
}

.ch-log-total {
    margin-left: auto;
    color: var(--ch-slate-400);
    font-size: 12px;
    font-weight: 500;
}

.ch-log-empty {
    font-size: 13px;
    color: var(--ch-slate-500);
    text-align: center;
    padding: 12px 0;
}


/* ═══════════════════════════════════════════════════════════
   10. CIRCULAR BUTTON (.ch-circle-btn)
   ═══════════════════════════════════════════════════════════ */

.ch-circle-btn-wrapper,
.ch-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.ch-glow-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--ch-accent-rgb), 0);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    pointer-events: none;
}

.ch-glow-active {
    border-color: rgba(var(--ch-accent-rgb), 0.4);
    box-shadow: 0 0 20px rgba(var(--ch-accent-rgb), 0.15);
}

.ch-circle-btn {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: var(--ch-dark);
    border: 2px solid rgba(var(--ch-accent-rgb), 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.ch-circle-btn:hover {
    border-color: rgba(var(--ch-accent-rgb), 0.3);
}

.ch-circle-fill {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ch-accent);
    border-radius: 50%;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.ch-fill-active {
    bottom: 0;
}

.ch-circle-icon {
    width: 48px;
    height: 48px;
    color: var(--ch-accent);
    z-index: 2;
    transition: color 0.3s ease;
}

.ch-circle-active .ch-circle-icon {
    color: var(--ch-dark);
}

.ch-circle-text {
    font-family: var(--ch-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--ch-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
    transition: color 0.3s ease;
}

.ch-circle-active .ch-circle-text {
    color: var(--ch-dark);
}


/* ═══════════════════════════════════════════════════════════
   11. STATUS PILL (.ch-status-pill)
   ═══════════════════════════════════════════════════════════ */

.ch-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--ch-font);
    font-size: 13px;
    font-weight: 600;
}

.ch-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ch-status-working {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
}

.ch-status-working .ch-status-dot {
    background: var(--ch-emerald);
    animation: ch-pulse 2s ease-in-out 3;
}

.ch-status-idle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ch-slate-400);
}

.ch-status-idle .ch-status-dot {
    background: var(--ch-slate-500);
}


/* ═══════════════════════════════════════════════════════════
   12. TIMER
   ═══════════════════════════════════════════════════════════ */

.ch-timer-area {
    text-align: center !important;
    min-height: 80px;
    position: relative;
    width: 100% !important;
    align-self: stretch !important;
    display: block !important;
}

/* Timer hidden: removed from flow so idle text centers */
.ch-timer-container {
    display: none !important;
}

/* Timer visible: shown normally */
.ch-timer-container.ch-timer-visible {
    display: block !important;
}

.ch-timer-label {
    font-size: 12px;
    color: var(--ch-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 4px;
}

.ch-timer-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--ch-white);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ch-idle-text {
    font-size: 14px;
    color: var(--ch-slate-500);
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.ch-idle-text.ch-hidden {
    display: none;
}


/* ═══════════════════════════════════════════════════════════
   13. NOTES SECTION
   ═══════════════════════════════════════════════════════════ */

.ch-notas-section {
    width: 100%;
    text-align: center;
}

.ch-notas-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--ch-slate-400);
    font-family: var(--ch-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ch-notas-toggle:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.05);
}

.ch-notas-toggle i,
.ch-notas-toggle svg {
    width: 16px;
    height: 16px;
}

.ch-notas-input {
    margin-top: 10px;
}

.ch-notas-input textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--ch-white);
    font-family: var(--ch-font);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
    outline: none;
}

.ch-notas-input textarea::placeholder {
    color: var(--ch-slate-500);
}

.ch-notas-input textarea:focus {
    border-color: rgba(var(--ch-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--ch-accent-rgb), 0.1);
}


/* ═══════════════════════════════════════════════════════════
   14. FEEDBACK MESSAGE
   ═══════════════════════════════════════════════════════════ */

.ch-mensaje {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--ch-font);
    padding: 4px 0;
    min-height: 24px;
}

.ch-msg-success {
    color: var(--ch-emerald);
}

.ch-msg-error {
    color: var(--ch-red);
}


/* ═══════════════════════════════════════════════════════════
   15. LOGIN PAGE (.ch-login-page)
   ═══════════════════════════════════════════════════════════ */

.ch-login-page {
    min-height: 100vh;
    font-family: var(--ch-font);
    color: var(--ch-white);
    background: var(--ch-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header floats at top without breaking flex centering */
.ch-login-page .ch-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px 20px;
}

.ch-login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(var(--ch-surface-rgb), 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ch-radius-2xl);
    padding: 40px 36px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ch-login-form,
.ch-login-card .ch-form-group {
    max-width: 100%;
    overflow: hidden;
}

.ch-login-card *,
.ch-login-card *::before,
.ch-login-card *::after {
    box-sizing: border-box;
}

/* Login logo */
a.ch-login-logo,
.ch-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    text-decoration: none;
    cursor: pointer;
}

.ch-login-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(var(--ch-accent-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ch-font);
    font-size: 16px;
    font-weight: 800;
    color: var(--ch-accent);
}

.ch-login-logo-text {
    font-family: var(--ch-font);
    font-size: 22px;
    font-weight: 800;
    color: var(--ch-white);
    letter-spacing: -0.02em;
}

/* Login headings */
.ch-login-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ch-white);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ch-login-subtitle {
    font-size: 14px;
    color: var(--ch-slate-400);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Login form */
.ch-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ch-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ch-slate-400);
}

.ch-form-group label i,
.ch-form-group label svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.ch-form-group input[type="email"],
.ch-form-group input[type="password"],
.ch-form-group input[type="text"],
.ch-form-group input[type="tel"],
.ch-form-group input[type="number"],
.ch-form-group input[type="date"],
.ch-form-group input[type="time"],
.ch-form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--ch-white);
    font-family: var(--ch-font);
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.ch-form-group input::placeholder,
.ch-form-group textarea::placeholder {
    color: var(--ch-slate-500);
}

.ch-form-group input:focus,
.ch-form-group textarea:focus {
    border-color: rgba(var(--ch-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--ch-accent-rgb), 0.1);
}

/* Force textarea dark styling over WP theme defaults */
.ch-panel-form textarea,
.ch-form-group textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--ch-white) !important;
    border-radius: 14px !important;
    font-family: var(--ch-font) !important;
    font-size: 15px !important;
    padding: 14px 16px !important;
    outline: none !important;
    resize: vertical;
}

.ch-form-group select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--ch-white);
    font-family: var(--ch-font);
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.ch-form-group select:focus {
    border-color: rgba(var(--ch-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--ch-accent-rgb), 0.1);
}

.ch-form-group select option {
    background: var(--ch-surface);
    color: var(--ch-white);
}

/* Form options row (remember me / forgot) */
.ch-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.ch-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ch-slate-400);
    cursor: pointer;
    font-size: 13px;
}

.ch-checkbox-label input[type="checkbox"] {
    accent-color: var(--ch-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ch-forgot-link {
    color: var(--ch-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.ch-forgot-link:hover {
    opacity: 0.8;
}

/* Login button */
.ch-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: var(--ch-accent);
    color: var(--ch-dark);
    border: none;
    border-radius: 16px;
    font-family: var(--ch-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 0 20px rgba(var(--ch-accent-rgb), 0.2);
}

.ch-login-btn:hover {
    background: var(--ch-white);
    box-shadow: 0 0 15px rgba(var(--ch-accent-rgb), 0.2);
}

/* Login messages */
.ch-login-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.ch-login-msg-info,
.ch-login-msg-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ch-login-msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ch-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Login footer links */
.ch-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--ch-slate-400);
}

.ch-login-footer a {
    color: var(--ch-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.ch-login-footer a:hover {
    opacity: 0.8;
}

/* Back to home link */
.ch-back-home {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ch-slate-400);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ch-back-home:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.06);
}

.ch-back-home i,
.ch-back-home svg {
    width: 16px;
    height: 16px;
}


/* ═══════════════════════════════════════════════════════════
   16. REGISTRATION PAGE (.ch-registro-page)
   ═══════════════════════════════════════════════════════════ */

.ch-registro-page {
    min-height: 100vh;
    font-family: var(--ch-font);
    color: var(--ch-white);
    background: var(--ch-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ch-registro-card {
    width: 100%;
    max-width: 560px;
    background: rgba(var(--ch-surface-rgb), 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ch-radius-2xl);
    padding: 40px 36px;
    position: relative;
    z-index: 1;
}

.ch-registro-card *,
.ch-registro-card *::before,
.ch-registro-card *::after {
    box-sizing: border-box;
}

.ch-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ch-white);
    margin: 24px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--ch-accent-rgb), 0.2);
}

.ch-form-section-title:first-of-type {
    margin-top: 0;
}

.ch-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
}

/* Asegurar box-sizing en registro (usa ch-login-card) */
.ch-registro-page .ch-login-card *,
.ch-registro-page .ch-login-card *::before,
.ch-registro-page .ch-login-card *::after {
    box-sizing: border-box;
}

.ch-registro-page .ch-login-card {
    overflow: hidden;
}

.ch-registro-page .ch-form-group input {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}


/* ═══════════════════════════════════════════════════════════
   17. HOME PAGE (.ch-home-page)
   ═══════════════════════════════════════════════════════════ */

.ch-home-page {
    font-family: var(--ch-font);
    color: var(--ch-slate-300);
    background: var(--ch-dark);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ch-home-page *,
.ch-home-page *::before,
.ch-home-page *::after {
    box-sizing: border-box;
}

/* --- Background (absolute, not fixed — WP compatibility) --- */
.ch-home-bg-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.ch-home-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.ch-home-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--ch-dark-rgb), 0.85);
}

.ch-home-bg-noise {
    display: none;
}

/* --- Navbar --- */
.ch-home-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(var(--ch-dark-rgb), 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-home-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.ch-home-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ch-home-nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ch-accent);
    color: var(--ch-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(var(--ch-accent-rgb), 0.3);
}

.ch-home-nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--ch-white);
    letter-spacing: -0.02em;
}

.ch-home-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.ch-home-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ch-slate-300);
    text-decoration: none;
    transition: color 0.2s;
}

.ch-home-nav-link:hover {
    color: var(--ch-white);
}

.ch-home-nav-link--white {
    color: var(--ch-white);
    font-weight: 500;
}

.ch-home-nav-link--white:hover {
    color: var(--ch-accent);
}

.ch-home-nav-sep {
    height: 16px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.ch-home-nav-cta {
    background: var(--ch-white);
    color: var(--ch-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ch-home-nav-cta:hover {
    background: var(--ch-accent);
    transform: scale(1.05);
}

/* --- Hamburger button (mobile only) --- */
.ch-home-nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 20;
}

.ch-home-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ch-white);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.ch-home-nav-burger.ch-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ch-home-nav-burger.ch-open span:nth-child(2) {
    opacity: 0;
}

.ch-home-nav-burger.ch-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile menu --- */
.ch-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0 24px 20px;
    gap: 4px;
}

.ch-mobile-menu-open {
    display: flex;
}

.ch-mobile-menu-link {
    display: block;
    padding: 12px 16px;
    color: var(--ch-slate-300);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.ch-mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ch-white);
}

.ch-mobile-menu-cta {
    display: block;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(var(--ch-accent-rgb), 0.15);
    color: var(--ch-accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
}

/* --- Filter button alignment --- */
.ch-filter-btn-group {
    align-self: flex-end;
}

/* --- Hero Section --- */
.ch-home-hero-section {
    position: relative;
    z-index: 10;
    padding: 60px 0 80px;
}

.ch-home-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ch-home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.ch-home-hero-copy {
    text-align: center;
}

.ch-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ch-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
    cursor: default;
    transition: background 0.2s;
}

.ch-home-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ch-home-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ch-accent);
    animation: ch-pulse 2s ease-in-out 3;
}

.ch-home-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    color: var(--ch-white);
    line-height: 0.9;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

.ch-home-title-accent {
    color: var(--ch-accent);
    text-shadow: 0 0 15px rgba(var(--ch-accent-rgb), 0.3);
}

.ch-home-desc {
    font-size: 20px;
    color: var(--ch-slate-400);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 480px;
}

.ch-home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ch-home-cta-primary {
    background: var(--ch-accent) !important;
    color: var(--ch-dark) !important;
    padding: 16px 32px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    box-shadow: 0 0 20px rgba(var(--ch-accent-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ch-home-cta-primary:hover {
    background: var(--ch-white) !important;
}

.ch-home-cta-secondary {
    padding: 16px 32px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    color: var(--ch-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ch-home-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.ch-home-cta-secondary:hover .ch-icon-sm {
    color: var(--ch-accent);
}

/* --- Phone Demo --- */
.ch-home-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ch-home-phone-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
}

.ch-home-phone-blob--accent {
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(var(--ch-accent-rgb), 0.2) 0%, transparent 70%);
}

.ch-home-phone-blob--purple {
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
}

.ch-home-phone {
    position: relative;
    width: 320px;
    background: var(--ch-dark);
    border-radius: 48px;
    border: 8px solid var(--ch-slate-800);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ch-home-phone-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
    z-index: 20;
}

.ch-home-phone-ui {
    height: 600px;
    background: var(--ch-slate-900);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Phone header */
.ch-phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 16px;
}

.ch-phone-header-label {
    font-size: 12px;
    color: var(--ch-slate-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ch-phone-header-date {
    color: var(--ch-white);
    font-weight: 700;
    font-size: 18px;
}

.ch-phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ch-slate-800);
    border: 1px solid var(--ch-slate-700);
    overflow: hidden;
}

.ch-phone-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Phone interactive button */
.ch-phone-btn-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ch-phone-btn-wrap {
    position: relative;
    cursor: pointer;
}

.ch-phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(var(--ch-accent-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: opacity 0.5s;
    opacity: 0;
}

.ch-phone-glow--active {
    opacity: 1;
}

.ch-phone-btn-wrap:hover .ch-phone-glow {
    opacity: 1;
}

.ch-phone-main-btn {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: var(--ch-slate-800);
    border: 1px solid var(--ch-slate-700);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.ch-phone-main-btn:active {
    transform: scale(0.95);
}

.ch-phone-main-btn--active {
    background: var(--ch-slate-900);
    border-color: var(--ch-accent);
}

.ch-phone-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--ch-accent);
    transition: background-color 0.5s, border-color 0.5s;
    height: 0;
    opacity: 0.2;
}

.ch-phone-fill--active {
    height: 100%;
    opacity: 1;
}

.ch-phone-btn-icon {
    width: 48px;
    height: 48px;
    color: var(--ch-slate-400);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.ch-phone-btn-text {
    color: var(--ch-slate-300);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

/* Phone status/timer */
.ch-phone-status {
    margin-top: 32px;
    text-align: center;
    height: 80px;
}

.ch-phone-timer-wrap {
    display: none;
}

.ch-phone-timer-label {
    font-size: 12px;
    color: var(--ch-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
    animation: ch-pulse 2s ease-in-out 3;
}

.ch-phone-timer {
    font-family: 'Courier New', monospace;
    font-size: 36px;
    color: var(--ch-white);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.ch-phone-idle {
    color: var(--ch-slate-500);
    font-size: 14px;
}

/* Phone bottom card */
.ch-phone-bottom {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ch-phone-bottom-icon {
    padding: 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    color: var(--ch-emerald);
}

.ch-phone-bottom-icon i,
.ch-phone-bottom-icon svg {
    width: 16px;
    height: 16px;
}

.ch-phone-bottom-title {
    color: var(--ch-white);
    font-size: 14px;
    font-weight: 500;
}

.ch-phone-bottom-sub {
    color: var(--ch-slate-500);
    font-size: 12px;
}

/* --- Bento Grid Features --- */
.ch-bento-section {
    position: relative;
    z-index: 10;
    padding: 96px 0;
    background: var(--ch-dark);
}

.ch-bento-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ch-bento-header {
    margin-bottom: 64px;
}

.ch-bento-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--ch-white);
    margin: 0 0 24px;
}

.ch-bento-bar {
    height: 4px;
    width: 80px;
    background: var(--ch-accent);
}

.ch-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ch-bento-card {
    background: rgba(var(--ch-surface-rgb), 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.ch-bento-card:hover {
    border-color: rgba(var(--ch-accent-rgb), 0.3);
}

.ch-bento-card--wide {
    /* spans 2 cols on desktop */
}

.ch-bento-card--tall {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* spans 2 rows on desktop */
}

.ch-bento-card-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 32px;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.ch-bento-card:hover .ch-bento-card-bg-icon {
    opacity: 0.2;
}

.ch-bento-card-bg-icon i,
.ch-bento-card-bg-icon svg {
    width: 128px;
    height: 128px;
    color: var(--ch-white);
}

.ch-bento-card-content {
    position: relative;
    z-index: 10;
}

.ch-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.ch-bento-card:hover .ch-bento-icon {
    transform: rotate(6deg);
}

.ch-bento-icon i,
.ch-bento-icon svg {
    width: 28px;
    height: 28px;
}

.ch-bento-icon--accent {
    background: var(--ch-accent);
    color: var(--ch-dark);
    transform: rotate(3deg);
    box-shadow: 0 0 15px rgba(var(--ch-accent-rgb), 0.3);
}

.ch-bento-icon--glass {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ch-white);
}

.ch-bento-icon--glass-accent {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ch-accent);
}

.ch-bento-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ch-white);
    margin: 0 0 16px;
}

.ch-bento-card-desc {
    font-size: 16px;
    color: var(--ch-slate-400);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}

/* Bento mini report visual */
.ch-bento-mini-report {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ch-bento-card:hover .ch-bento-mini-report {
    opacity: 1;
}

.ch-bento-mini-report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--ch-white);
}

.ch-bento-mini-report-icon {
    color: var(--ch-red);
    width: 20px;
    height: 20px;
}

.ch-bento-mini-report-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-bento-mini-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* --- Pricing Section --- */
.ch-pricing-section {
    position: relative;
    z-index: 10;
    padding: 96px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-pricing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ch-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.ch-pricing-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--ch-white);
    margin: 0 0 24px;
}

.ch-pricing-subtitle {
    font-size: 18px;
    color: var(--ch-slate-400);
    line-height: 1.6;
    margin: 0 0 32px;
}

.ch-pricing-checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ch-pricing-check {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-pricing-check span {
    color: var(--ch-white);
    font-size: 15px;
}

.ch-pricing-check-icon {
    background: rgba(var(--ch-accent-rgb), 0.2);
    padding: 8px;
    border-radius: 8px;
    color: var(--ch-accent);
    flex-shrink: 0;
}

.ch-pricing-check-icon i,
.ch-pricing-check-icon svg {
    width: 20px;
    height: 20px;
}

/* Pricing card */
.ch-pricing-card-wrap {
    position: relative;
}

.ch-pricing-card-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(var(--ch-accent-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ch-pricing-card {
    position: relative;
    background: rgba(var(--ch-surface-rgb), 0.85);
    border: 1px solid rgba(var(--ch-accent-rgb), 0.2);
    border-radius: 40px;
    padding: 40px;
}

.ch-pricing-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--ch-accent);
    color: var(--ch-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ch-pricing-card-plan {
    color: var(--ch-slate-400);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 8px;
}

.ch-pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.ch-pricing-card-amount {
    font-size: 72px;
    font-weight: 700;
    color: var(--ch-white);
    letter-spacing: -0.04em;
}

.ch-pricing-card-period {
    font-size: 20px;
    color: var(--ch-slate-400);
}

.ch-pricing-card-note {
    color: var(--ch-slate-400);
    margin: 0 0 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.ch-pricing-card-btn {
    display: block;
    width: 100%;
    background: var(--ch-accent);
    color: var(--ch-dark);
    font-weight: 700;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
    box-shadow: 0 0 20px rgba(var(--ch-accent-rgb), 0.3);
    box-sizing: border-box;
}

.ch-pricing-card-btn:hover {
    background: var(--ch-white);
    transform: scale(1.02);
}

.ch-pricing-card-sub {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--ch-slate-500);
}

/* --- Footer --- */
.ch-site-footer {
    position: relative;
    z-index: 10;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--ch-dark);
    font-size: 14px;
    color: var(--ch-slate-500);
}

.ch-site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ch-site-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-site-footer-brand-name {
    font-weight: 700;
    color: var(--ch-white);
}

.ch-site-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ch-site-footer-links a {
    color: var(--ch-slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.ch-site-footer-links a:hover {
    color: var(--ch-white);
}


/* ═══════════════════════════════════════════════════════════
   18. PANEL PAGE (.ch-panel-page)
   ═══════════════════════════════════════════════════════════ */

.ch-panel-page {
    min-height: 100vh;
    font-family: var(--ch-font);
    color: var(--ch-white);
    background: var(--ch-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ch-panel-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

/* Panel tabs */
.ch-panel-tabs {
    display: flex;
    gap: 4px;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ch-panel-tabs::-webkit-scrollbar {
    display: none;
}

.ch-panel-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--ch-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--ch-slate-400);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.ch-panel-tab:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.06);
}

.ch-panel-tab-active,
.ch-panel-tab-active:hover {
    color: var(--ch-accent);
    background: rgba(var(--ch-accent-rgb), 0.1);
}

.ch-panel-tab i,
.ch-panel-tab svg {
    width: 18px;
    height: 18px;
}

/* Panel sections */
.ch-panel-section {
    padding-top: 24px;
}

.ch-panel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.ch-panel-section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ch-white);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Panel stats */
.ch-panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ch-panel-stat-card {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ch-panel-stat-card i,
.ch-panel-stat-card > svg {
    width: 28px;
    height: 28px;
    color: var(--ch-accent);
    flex-shrink: 0;
}

.ch-panel-stat-info {
    display: flex;
    flex-direction: column;
}

.ch-panel-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--ch-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ch-panel-stat-label {
    font-size: 13px;
    color: var(--ch-slate-400);
    margin-top: 2px;
}

/* Panel form */
.ch-panel-form {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 24px;
}

.ch-panel-form .ch-form-group {
    margin-bottom: 16px;
}

.ch-panel-form .ch-form-group:last-of-type {
    margin-bottom: 0;
}

.ch-panel-form-msg {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-weight: 500;
}

.ch-panel-form-msg-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ch-panel-form-msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ch-red);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Panel filters */
.ch-panel-filters {
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ch-radius-xl);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.ch-panel-filters .ch-form-group {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
}

.ch-panel-filters .ch-form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.ch-panel-export-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Panel user actions */
.ch-panel-actions {
    display: flex;
    gap: 6px;
}

.ch-panel-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ch-slate-400);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ch-panel-action-btn:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.08);
}

.ch-panel-action-btn-danger:hover {
    color: var(--ch-red);
    background: rgba(239, 68, 68, 0.1);
}

.ch-panel-action-btn i,
.ch-panel-action-btn svg {
    width: 16px;
    height: 16px;
}


/* ═══════════════════════════════════════════════════════════
   19. DATA TABLE (.ch-data-table)
   ═══════════════════════════════════════════════════════════ */

.ch-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ch-radius-xl);
    background: rgba(var(--ch-surface-rgb), 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ch-font);
}

.ch-data-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ch-slate-500);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--ch-surface);
}

.ch-data-table tbody td {
    font-size: 13px;
    padding: 12px 16px;
    color: var(--ch-slate-300);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

#ch-tabla-correcciones tbody td:nth-child(6) {
    white-space: normal;
    max-width: 280px;
    word-break: break-word;
}

.ch-data-table tbody tr:last-child td {
    border-bottom: none;
}

.ch-data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Status badges inside tables */
.ch-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ch-badge-activo {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
}

.ch-badge-inactivo {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ch-red);
}

.ch-badge-entrada {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
}

.ch-badge-salida {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ch-red);
}

.ch-badge-pendiente {
    background: rgba(245, 158, 11, 0.1);
    color: var(--ch-amber);
}

.ch-badge-aprobado {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ch-emerald);
}

.ch-badge-rechazado {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ch-red);
}

/* Table empty state */
.ch-table-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ch-slate-500);
    font-size: 14px;
}

.ch-table-empty i,
.ch-table-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Pagination */
.ch-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.ch-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--ch-slate-400);
    font-family: var(--ch-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ch-pagination-btn:hover {
    color: var(--ch-white);
    background: rgba(255, 255, 255, 0.06);
}

.ch-pagination-btn-active,
.ch-pagination-btn-active:hover {
    color: var(--ch-accent);
    background: rgba(var(--ch-accent-rgb), 0.1);
}

.ch-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════════
   20. HISTORIAL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Historial widget container */
.ch-historial-widget {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

/* Header */
.ch-hist-header {
    margin-bottom: 28px;
}

.ch-hist-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ch-white);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.ch-hist-subtitle {
    font-size: 14px;
    color: var(--ch-slate-400);
    margin: 0;
}

/* Filter form */
.ch-hist-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ch-hist-filter .ch-select {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--ch-white);
    font-family: var(--ch-font);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ch-hist-filter .ch-select:focus {
    border-color: rgba(var(--ch-accent-rgb), 0.5);
    outline: none;
}

/* Summary cards */
.ch-hist-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.ch-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    text-align: center;
}

.ch-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--ch-white);
    letter-spacing: -0.02em;
}

.ch-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ch-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ch-summary-warning .ch-summary-value {
    color: #fbbf24;
}

/* Export buttons */
.ch-hist-export {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.ch-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--ch-white);
    font-family: var(--ch-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ch-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Table card */
.ch-table-card {
    overflow-x: auto;
    margin-bottom: 20px;
}

.ch-hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ch-hist-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--ch-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-hist-table tbody td {
    padding: 12px 14px;
    color: var(--ch-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ch-hist-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ch-row-warn {
    background: rgba(251, 191, 36, 0.04);
}

.ch-row-empty td {
    color: var(--ch-slate-500);
}

.ch-cell-hora {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.ch-cell-total {
    font-weight: 700;
    color: var(--ch-accent);
}

.ch-cell-center {
    text-align: center;
    color: var(--ch-slate-500);
}

/* Badges */
.ch-badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ch-badge-ok {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.ch-badge-danger {
    background: rgba(251, 113, 133, 0.12);
    color: #fb7185;
}

.ch-badge-neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--ch-slate-400);
}

/* Legal footer */
.ch-hist-legal {
    text-align: center;
    font-size: 12px;
    color: var(--ch-slate-500);
    padding: 16px 0 0;
}

/* Icon sizes */
.ch-icon-xs {
    width: 12px;
    height: 12px;
}

.ch-icon-sm {
    width: 16px;
    height: 16px;
}


/* ═══════════════════════════════════════════════════════════
   21. UTILITIES
   ═══════════════════════════════════════════════════════════ */

.ch-hidden {
    display: none !important;
}

.ch-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ch-text-center {
    text-align: center;
}

.ch-text-accent {
    color: var(--ch-accent);
}

.ch-text-slate {
    color: var(--ch-slate-400);
}

.ch-mt-0 { margin-top: 0; }
.ch-mt-8 { margin-top: 8px; }
.ch-mt-12 { margin-top: 12px; }
.ch-mt-16 { margin-top: 16px; }
.ch-mt-24 { margin-top: 24px; }
.ch-mb-0 { margin-bottom: 0; }
.ch-mb-8 { margin-bottom: 8px; }
.ch-mb-12 { margin-bottom: 12px; }
.ch-mb-16 { margin-bottom: 16px; }
.ch-mb-24 { margin-bottom: 24px; }

.ch-flex { display: flex; }
.ch-flex-col { flex-direction: column; }
.ch-flex-center { align-items: center; justify-content: center; }
.ch-flex-between { justify-content: space-between; }
.ch-gap-8 { gap: 8px; }
.ch-gap-12 { gap: 12px; }
.ch-gap-16 { gap: 16px; }
.ch-w-full { width: 100%; }


/* ═══════════════════════════════════════════════════════════
   22. ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes ch-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes ch-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ch-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ch-blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes ch-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

.ch-animate-fade-in {
    animation: ch-fade-in 0.4s ease forwards;
}

.ch-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--ch-accent-rgb), 0.2);
    border-top-color: var(--ch-accent);
    border-radius: 50%;
    animation: ch-spin 0.6s linear infinite;
}


/* ═══════════════════════════════════════════════════════════
   23. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (max-width: 768px) ── */
@media (max-width: 768px) {

    .ch-panel-stats,
    .ch-historial-summary,
    .ch-hist-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .ch-panel-content,
    .ch-historial-content,
    .ch-historial-widget {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Home tablet — navbar: hide desktop links, show burger */
    .ch-home-nav-links {
        display: none !important;
    }

    .ch-home-nav-burger {
        display: block;
    }

    /* Filter button full width on tablet/mobile */
    .ch-filter-btn-group {
        align-self: stretch;
    }

    .ch-filter-btn-group .ch-btn-accent {
        width: 100%;
        justify-content: center;
    }

    /* Home tablet — hero */
    .ch-home-hero-section {
        padding: 40px 0 60px;
    }

    .ch-home-hero-copy {
        text-align: center;
    }

    .ch-home-title {
        font-size: 52px;
    }

    .ch-home-desc {
        font-size: 18px;
    }

    .ch-home-hero-container {
        padding: 0 24px;
    }

    /* Home tablet — bento */
    .ch-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ch-bento-card--wide {
        grid-column: span 2;
    }

    .ch-bento-card--tall {
        grid-row: span 2;
    }

    /* Home tablet — pricing */
    .ch-pricing-container {
        padding: 0 24px;
    }

    .ch-panel-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .ch-panel-filters .ch-form-group {
        min-width: 100%;
    }
}

/* ── Mobile (max-width: 640px) ── */
@media (max-width: 640px) {

    /* Navbar mobile */
    .ch-nav-link span,
    .ch-nav-link-text {
        display: none;
    }

    .ch-nav-link {
        padding: 8px 10px;
    }

    .ch-site-logo-text {
        display: none;
    }

    .ch-nav-inner {
        padding: 0 12px;
    }

    /* Fichar page mobile */
    .ch-fichar-page {
        padding-top: 72px;
    }

    .ch-fichar-content {
        padding: 0 16px 32px;
        gap: 20px;
    }

    .ch-fichar-greeting h1 {
        font-size: 22px;
    }

    .ch-fichar-widget-card {
        padding: 28px 16px;
        gap: 20px;
    }

    .ch-fichar-info-row {
        grid-template-columns: 1fr;
    }

    /* Circle button mobile — bigger and centered */
    .ch-circle-btn-wrapper,
    .ch-btn-wrapper {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .ch-glow-ring {
        width: 220px;
        height: 220px;
    }

    .ch-circle-btn {
        width: 176px;
        height: 176px;
    }

    .ch-circle-icon {
        width: 44px;
        height: 44px;
    }

    .ch-circle-text {
        font-size: 17px;
        letter-spacing: 0.06em;
    }

    /* Timer / idle text mobile — full width centered */
    .ch-timer-area {
        min-height: 60px;
    }

    .ch-timer-value {
        font-size: 32px;
    }

    .ch-idle-text {
        width: 100%;
        text-align: center;
    }

    /* Feedback message centered */
    .ch-mensaje {
        width: 100%;
        text-align: center;
    }

    /* Notes section centered */
    .ch-notas-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Login / Registro: hide redundant top header on mobile (card has logo) */
    .ch-login-page .ch-site-header {
        display: none !important;
    }

    .ch-login-page {
        padding: 24px 16px;
    }

    /* Login card mobile */
    .ch-login-card {
        padding: 28px 20px;
    }

    .ch-login-title {
        font-size: 24px;
    }

    /* Registration mobile */
    .ch-registro-card {
        padding: 28px 20px;
    }

    .ch-form-row {
        grid-template-columns: 1fr;
    }

    /* Home mobile — navbar */
    .ch-home-nav-links {
        display: none !important;
    }

    .ch-home-nav-inner {
        height: 64px;
    }

    /* Home mobile — hero */
    .ch-home-hero-section {
        padding: 30px 0 40px;
    }

    .ch-home-hero-container {
        padding: 0 20px;
    }

    .ch-home-hero-copy {
        text-align: center;
    }

    .ch-home-title {
        font-size: 40px;
    }

    .ch-home-desc {
        font-size: 16px;
    }

    .ch-home-actions {
        flex-direction: column;
        width: 100%;
    }

    .ch-home-cta-primary,
    .ch-home-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .ch-home-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    /* Home mobile — phone */
    .ch-home-phone {
        width: 260px;
    }

    .ch-home-phone-ui {
        height: 480px;
        padding: 16px;
    }

    .ch-phone-main-btn {
        width: 140px;
        height: 140px;
    }

    .ch-phone-btn-icon {
        width: 32px;
        height: 32px;
    }

    .ch-phone-btn-text {
        font-size: 14px;
    }

    .ch-phone-timer {
        font-size: 24px;
    }

    .ch-phone-header-date {
        font-size: 15px;
    }

    /* Bento mobile */
    .ch-bento-section {
        padding: 60px 0;
    }

    .ch-bento-container {
        padding: 0 20px;
    }

    .ch-bento-grid {
        grid-template-columns: 1fr;
    }

    .ch-bento-card--wide {
        grid-column: span 1;
    }

    .ch-bento-card--tall {
        grid-row: span 1;
    }

    .ch-bento-card {
        padding: 24px;
    }

    .ch-bento-card-title {
        font-size: 20px;
    }

    .ch-bento-card-desc {
        font-size: 14px;
    }

    .ch-bento-card-bg-icon i,
    .ch-bento-card-bg-icon svg {
        width: 128px;
        height: 128px;
    }

    /* Pricing mobile */
    .ch-pricing-section {
        padding: 60px 0;
    }

    .ch-pricing-container {
        padding: 0 20px;
    }

    .ch-pricing-card {
        padding: 28px;
        border-radius: 28px;
    }

    .ch-pricing-card-amount {
        font-size: 56px;
    }

    .ch-pricing-card-btn {
        padding: 16px;
        font-size: 16px;
    }

    /* Panel mobile */
    .ch-panel-page {
        padding-top: 72px;
    }

    .ch-panel-tabs {
        padding-bottom: 16px;
        gap: 2px;
    }

    .ch-panel-tab {
        font-size: 13px;
        padding: 6px 12px;
    }

    .ch-panel-section-header h2 {
        font-size: 20px;
    }

    .ch-panel-stats,
    .ch-historial-summary,
    .ch-hist-summary {
        grid-template-columns: 1fr;
    }

    .ch-hist-table thead th,
    .ch-hist-table tbody td {
        padding: 10px 10px;
        font-size: 12px;
    }

    .ch-hist-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .ch-panel-stat-value {
        font-size: 22px;
    }

    /* Table mobile */
    .ch-data-table thead th {
        font-size: 11px;
        padding: 10px 12px;
    }

    .ch-data-table tbody td {
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Footer mobile */
    .ch-site-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Form row mobile */
    .ch-panel-filters {
        padding: 16px;
    }

    .ch-panel-form {
        padding: 20px 16px;
    }

    /* Glass card mobile */
    .ch-glass-card {
        padding: 20px 16px;
    }

    .ch-fichar-log {
        padding: 16px;
    }

    .ch-fichar-log-title {
        font-size: 12px;
    }

    /* Circle button wrapper resize — matches earlier rule */
    .ch-circle-btn-wrapper,
    .ch-btn-wrapper {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    /* History title mobile */
    .ch-hist-title {
        font-size: 22px;
    }

    /* Footer mobile spacing */
    .ch-site-footer {
        padding: 32px 0;
    }

    .ch-site-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Panel/historial bottom padding */
    .ch-panel-content,
    .ch-historial-widget {
        padding-bottom: 40px;
    }

    /* Hero grid gap mobile */
    .ch-home-hero-grid {
        gap: 40px;
    }

    /* Bento header margin mobile */
    .ch-bento-header {
        margin-bottom: 32px;
    }

    /* Pricing mobile spacing */
    .ch-pricing-grid {
        gap: 32px;
    }

    .ch-pricing-subtitle {
        font-size: 16px;
    }

    /* Login form options wrap */
    .ch-form-options {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Solicitudes title padding in table-wrap */
    .ch-solicitudes-title {
        font-size: 16px;
    }

    /* ─── Historial: summary cards compact 3-col ─── */
    .ch-hist-summary {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .ch-summary-card {
        padding: 14px 8px;
    }

    .ch-summary-value {
        font-size: 20px;
    }

    .ch-summary-label {
        font-size: 10px;
    }

    /* ─── Historial: export buttons full-width stacked ─── */
    .ch-hist-export {
        flex-direction: column;
    }

    .ch-hist-export form {
        display: block !important;
        width: 100%;
    }

    .ch-hist-export .ch-btn-glass {
        width: 100%;
        justify-content: center;
    }

    /* ─── Historial: table → card view ─── */
    .ch-table-card.ch-glass-card {
        background: transparent;
        border: none;
        padding: 0;
        overflow: visible;
    }

    .ch-hist-table thead {
        display: none;
    }

    .ch-hist-table tbody {
        display: block;
    }

    .ch-hist-table tbody tr {
        display: block;
        position: relative;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 14px 16px;
        margin-bottom: 10px;
    }

    .ch-hist-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    /* Continuation rows (2nd entry/exit pair same day) connect to card above */
    .ch-hist-table tbody tr.ch-row-cont {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: -11px;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .ch-hist-table tbody tr:has(+ .ch-row-cont) {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    /* Default cell layout: label ← → value */
    .ch-hist-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border-bottom: none;
        font-size: 14px;
    }

    .ch-hist-table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: var(--ch-slate-400);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        flex-shrink: 0;
    }

    /* ── Fecha + Día: inline card header ── */
    .ch-hist-table tbody td[data-label="Fecha"] {
        display: inline;
        font-weight: 700;
        font-size: 15px;
        padding: 0;
    }

    .ch-hist-table tbody td[data-label="Fecha"]::before {
        content: none;
    }

    .ch-hist-table tbody td[data-label="Día"] {
        display: inline;
        font-weight: 600;
        font-size: 15px;
        color: var(--ch-slate-400);
        padding: 0;
        margin-left: 2px;
    }

    .ch-hist-table tbody td[data-label="Día"]::before {
        content: "· ";
        color: var(--ch-slate-500);
        font-size: 15px;
        text-transform: none;
        letter-spacing: normal;
    }

    /* Hide empty Fecha/Día/Estado in continuation rows */
    .ch-hist-table tbody tr.ch-row-cont td[data-label="Fecha"],
    .ch-hist-table tbody tr.ch-row-cont td[data-label="Día"],
    .ch-hist-table tbody tr.ch-row-cont td[data-label="Estado"] {
        display: none !important;
    }

    /* Separator after header (before Entrada) */
    .ch-hist-table tbody td[data-label="Entrada"] {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Continuation rows: no separator since no header */
    .ch-hist-table tbody tr.ch-row-cont td[data-label="Entrada"] {
        margin-top: 0;
        padding-top: 4px;
        border-top: none;
    }

    /* Estado: no label, badge speaks for itself */
    .ch-hist-table tbody td[data-label="Estado"]::before {
        content: none;
    }

    .ch-hist-table tbody td[data-label="Estado"] {
        justify-content: flex-end;
        padding-top: 6px;
    }

    /* Actions button: top-right corner of card */
    .ch-hist-table tbody td.ch-cell-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 0;
    }

    .ch-hist-table tbody td.ch-cell-actions::before {
        content: none;
    }

    .ch-hist-table tbody td.ch-cell-actions:empty {
        display: none !important;
    }

    /* Empty-day rows: hide the "—" colspan cell */
    .ch-hist-table tbody .ch-cell-nofichaje {
        display: none !important;
    }

    /* Empty rows: compact styling */
    .ch-hist-table tbody tr.ch-row-empty {
        padding: 12px 16px;
    }

    .ch-hist-table tbody tr.ch-row-empty td[data-label="Estado"] {
        padding-top: 8px;
    }

    /* Warning row card accent */
    .ch-hist-table tbody tr.ch-row-warn {
        border-color: rgba(251, 191, 36, 0.15);
        background: rgba(251, 191, 36, 0.04);
    }
}

/* ── Large screens (min-width: 1024px) ── */
@media (min-width: 1024px) {

    .ch-panel-content {
        max-width: 960px;
    }

    .ch-historial-content {
        max-width: 960px;
    }

    /* Home desktop */
    .ch-home-nav-links {
        display: flex;
    }

    .ch-home-nav-burger {
        display: none !important;
    }

    .ch-mobile-menu {
        display: none !important;
    }

    .ch-home-hero-section {
        padding: 80px 0 100px;
    }

    .ch-home-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ch-home-hero-copy {
        text-align: left;
    }

    .ch-home-desc {
        margin-left: 0;
        margin-right: 0;
    }

    .ch-home-actions {
        justify-content: flex-start;
    }

    /* Bento desktop */
    .ch-bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ch-bento-card--wide {
        grid-column: span 2;
    }

    .ch-bento-card--wide .ch-bento-card-content {
        max-width: 60%;
    }

    .ch-bento-card--tall {
        grid-row: span 2;
    }

    .ch-bento-card--wide {
        padding: 48px;
    }

    .ch-bento-card--tall {
        padding: 48px;
    }

    /* Pricing desktop */
    .ch-pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer desktop */
    .ch-site-footer-inner {
        flex-direction: row;
    }

    .ch-panel-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Extra-large screens (min-width: 1280px) ── */
@media (min-width: 1280px) {

    .ch-panel-content {
        max-width: 1100px;
    }

    .ch-historial-content {
        max-width: 1100px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   18. SOLICITUDES DE CORRECCIÓN — Modal + Botones + Tabla
   ══════════════════════════════════════════════════════════════════ */

/* Modal overlay */
.ch-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ch-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 28px;
    position: relative;
}

.ch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ch-modal-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.ch-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.ch-modal-close:hover {
    color: #fff;
}

.ch-modal .ch-form-group {
    margin-bottom: 16px;
}

.ch-modal .ch-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.ch-modal .ch-input,
.ch-modal .ch-select,
.ch-modal textarea.ch-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

.ch-modal .ch-input:focus,
.ch-modal .ch-select:focus,
.ch-modal textarea.ch-input:focus {
    outline: none;
    border-color: #ccf381;
}

.ch-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ch-modal-actions .ch-btn-glass {
    flex: 1;
}

.ch-modal-actions .ch-btn-accent {
    flex: 2;
}

/* Correction request rows (entrada/salida) in modal */
.ch-sol-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.ch-sol-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ch-sol-actual {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Correction request button (pencil) in history table */
.ch-btn-corregir {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
}

.ch-btn-corregir:hover {
    background: rgba(204, 243, 129, 0.1);
    border-color: rgba(204, 243, 129, 0.3);
    color: #ccf381;
}

.ch-cell-actions {
    text-align: center;
    width: 50px;
}

/* Approve / Reject buttons in admin panel */
.ch-sol-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.ch-btn-aprobar {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 5px 10px;
    color: #22c55e;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ch-btn-aprobar:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: #22c55e;
}

.ch-btn-rechazar {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 5px 10px;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ch-btn-rechazar:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* Tab badge (pending count) */
.ch-tab-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
    line-height: 16px;
}

/* Solicitudes section title */
.ch-solicitudes-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Motivo column in solicitudes table */
.ch-sol-motivo {
    max-width: 200px;
    white-space: normal;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Mobile: correction request modal */
@media (max-width: 640px) {
    .ch-modal {
        padding: 20px;
        max-width: 100%;
    }

    .ch-modal-actions {
        flex-direction: column;
    }

    .ch-sol-actions {
        flex-direction: column;
    }

    .ch-btn-aprobar,
    .ch-btn-rechazar {
        width: 100%;
        justify-content: center;
    }

    .ch-cell-actions {
        width: auto;
    }
}

/* ── Print styles ── */
@media print {

    .ch-nav,
    .ch-blob,
    .ch-glow-ring,
    .ch-login-bg,
    .ch-circle-btn-wrapper {
        display: none !important;
    }

    .ch-fichar-page,
    .ch-panel-page,
    .ch-login-page,
    .ch-registro-page,
    .ch-home-page {
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
    }

    .ch-glass-card,
    .ch-fichar-widget-card,
    .ch-fichar-log,
    .ch-panel-form,
    .ch-panel-stat-card,
    .ch-table-wrap {
        background: white !important;
        backdrop-filter: none !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .ch-data-table thead th,
    .ch-data-table tbody td {
        color: black !important;
        border-color: #ddd !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — disable animations for accessibility
   and devices that struggle with them
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   24. PWA INSTALL BANNER
   ═══════════════════════════════════════════════════════════ */

.ch-pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(204, 243, 129, 0.2);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ch-pwa-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

.ch-pwa-banner-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ch-pwa-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(204, 243, 129, 0.15);
    color: var(--ch-accent);
}

.ch-pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ch-pwa-banner-text strong {
    color: var(--ch-white);
    font-size: 14px;
    font-weight: 700;
}

.ch-pwa-banner-text span {
    color: var(--ch-slate-400);
    font-size: 12px;
}

.ch-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ch-pwa-btn-install {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    background: var(--ch-accent);
    color: var(--ch-dark);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--ch-font);
    transition: opacity 0.15s;
}

.ch-pwa-btn-install:hover {
    opacity: 0.85;
}

.ch-pwa-btn-dismiss {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ch-slate-400);
    font-size: 18px;
    cursor: pointer;
    font-family: var(--ch-font);
    transition: background 0.15s;
}

.ch-pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* iOS install guide overlay */
.ch-pwa-ios-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ch-pwa-ios-visible {
    opacity: 1;
}

.ch-pwa-ios-card {
    width: 100%;
    max-width: 280px;
    background: var(--ch-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ch-pwa-ios-visible .ch-pwa-ios-card {
    transform: scale(1);
}

.ch-pwa-ios-card p {
    color: var(--ch-slate-300);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.ch-pwa-ios-card p b {
    color: var(--ch-white);
}

.ch-pwa-ios-card p svg {
    color: var(--ch-accent);
}

.ch-pwa-ios-card .ch-pwa-btn-install {
    width: 100%;
}


@media (prefers-reduced-motion: reduce) {
    .ch-blob,
    .ch-home-phone-blob,
    .ch-home-phone,
    .ch-phone-timer-label {
        animation: none !important;
    }
}
