:root {
    --bg: #000000;
    --text: #e0e0e0;
    --dim: #888888;
    --line: #222222;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.75;
}

a:link, a:visited { color: #ffffff; text-decoration: underline; }
a:hover, a:active { color: #ffffff; opacity: 0.8; }

/* ==================== NAVBAR ==================== */
.navbar {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.logo { font-size: 1.85rem; font-weight: 800; color: #ddd; user-select: none; }
.brand-alba, .brand-kron, .brand-me { cursor: pointer; transition: color 0.2s; }
.brand-alba:hover, .brand-kron:hover, .brand-me:hover { color: #fff; }

.search { display: flex; flex: 1; max-width: 420px; }
.search input { flex: 1; padding: 12px 16px; background: #111; border: 1px solid #333; color: #fff; border-radius: 20px 0 0 20px; outline: none; }
.search button { padding: 0 24px; background: #1a1a1a; border: 1px solid #333; border-left: none; color: #fff; border-radius: 0 20px 20px 0; cursor: pointer; }

/* ==================== PROFILE ==================== */
.profile {
    max-width: 900px; margin: 30px auto; padding: 20px 20px 30px 20px;
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
    border-bottom: 1px solid var(--line);
}
.profile-avatar-container { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.profile-avatar-container img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.motivos-count { color: var(--dim); font-size: 0.85rem; font-weight: 500; }

.profile-info { flex: 1; }
.profile-info h2 { margin: 0; font-size: 1.65rem; }
.profile-info p { color: var(--dim); margin: 6px 0; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { background: #111; border: 1px solid #444; color: #ccc; padding: 7px 14px; border-radius: 9999px; cursor: pointer; font-size: 0.9rem; }
.btn:hover { background: #222; color: #fff; }

/* ==================== ÁLBUMES ==================== */
.albums {
    max-width: 900px; margin: 10px auto; display: flex; gap: 8px;
    overflow-x: auto; padding: 10px 20px; scrollbar-width: thin;
}
.album-btn { padding: 6px 16px; background: #111; border: 1px solid #333; color: var(--dim); border-radius: 9999px; white-space: nowrap; cursor: pointer; font-size: 0.95rem; text-transform: capitalize; }
.album-btn:hover { background: #1a1a1a; }
.album-btn.active { background: #222; color: #fff; border-color: #666; }

/* ==================== MOTIVOS ==================== */
.post {
    max-width: 780px; margin: 25px auto; background: #0a0a0a;
    padding: 15px;
    border: 1px solid #1f1f1f; border-radius: 8px;
    display: flex; gap: 15px; align-items: flex-start;
    transition: border-color 0.3s ease;
}
.post.highlight { border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.1); }

.kron-time-col {
    display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 75px;
}
.circle-progress {
    width: 75px; height: 75px; border-radius: 50%;
    background: conic-gradient(#ffffff 0%, #222222 0);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.circle-progress::after {
    content: attr(data-percent); position: absolute;
    width: 63px; height: 63px; background: #0a0a0a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
}
.kron-end-date { font-size: 0.75rem; color: var(--dim); text-align: center; }

.kron-details { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kron-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px;
}
.kron-header h3 { margin: 0; font-size: 1.15rem; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.share-kron-btn {
    flex-shrink: 0; background: transparent; border: 1px solid #444; color: #ccc;
    padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem;
}
.share-kron-btn:hover { background: #222; color: #fff; }

/* Barra de Progreso y Tareas */
.task-bar-container { display: flex; gap: 4px; width: 100%; margin-bottom: 12px; }
.task-segment { flex: 1; height: 8px; border-radius: 4px; background: #222; }
.task-segment.done { background: #ffffff; }

.task-carousel {
    display: flex; align-items: center; justify-content: space-between;
    background: #0a0a0a; padding: 6px 8px; border-radius: 6px; border: 1px solid #1a1a1a;
    width: 100%; box-sizing: border-box;
}
.carousel-btn {
    background: none; border: none; color: #fff; font-size: 1rem;
    cursor: pointer; padding: 0 5px; opacity: 0.7; flex-shrink: 0;
}
.carousel-btn:hover:not(:disabled) { opacity: 1; }
.carousel-btn:disabled { color: #333; cursor: default; opacity: 0.3; }

.carousel-content {
    display: flex; flex: 1; justify-content: space-between; align-items: center;
    height: 20px; gap: 5px; min-width: 0; overflow: hidden;
}
.task-item {
    flex: 1; width: 33%; text-align: center; font-size: 0.75rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0.4; transition: opacity 0.3s;
}
.task-item.current { opacity: 1; color: #fff; font-weight: 500; font-size: 0.8rem; }

/* Modales */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #111; width: 90%; max-width: 450px; max-height: 80vh; overflow-y: auto; border: 1px solid #333; border-radius: 8px; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.close { font-size: 28px; cursor: pointer; color: var(--dim); }
.close:hover { color: #fff; }
.user-item { padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #1a1a1a; cursor: pointer; }
.user-item:hover { background: #1a1a1a; }
.user-item img { width: 48px; height: 48px; border-radius: 50%; }
.nav-menu-links { display: flex; flex-direction: column; padding: 15px 0; }
.nav-menu-links a { padding: 15px 25px; color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 600; border-bottom: 1px solid #1a1a1a; transition: background 0.2s; }
.nav-menu-links a:last-child { border-bottom: none; }
.nav-menu-links a:hover { background: #161616; opacity: 1; }
